Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Configuration/ConfigInitializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function createConfig(string $projectDirectory): void

// non-interactive terminal, e.g. piped output, CI or an agent: never prompt or silently write a
// config, just say what to do - Symfony still treats a closed STDIN as interactive here
if (!defined('STDIN') || !stream_isatty(STDIN)) {
if (! defined('STDIN') || ! stream_isatty(STDIN)) {
$this->symfonyStyle->warning(sprintf(
'No "%s" config found. Create one, or pass "--config <path>".',
RectorConfigsResolver::DEFAULT_CONFIG_FILE
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Style/SymfonyStyleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function create(): RectorStyle
}

// no interactive terminal, e.g. piped output, CI or an agent - never emit ANSI, even if forced via --ansi
if (!defined('STDOUT') || !stream_isatty(STDOUT)) {
if (! defined('STDOUT') || ! stream_isatty(STDOUT)) {
$consoleOutput->setDecorated(false);
}

Expand Down
Loading