@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | new InputOption('plan', null, InputOption::VALUE_NONE, 'Show execution plan'), |
| 21 | 21 | new InputOption('start-from', null, InputOption::VALUE_REQUIRED, 'Start execution from this task'), |
| 22 | 22 | new InputOption('log', null, InputOption::VALUE_REQUIRED, 'Write log to a file'), |
| 23 | - new InputOption('profile', null, InputOption::VALUE_REQUIRED, 'Write profile to a file', ), |
|
| 24 | - new InputOption('ansi', null, InputOption::VALUE_OPTIONAL, 'Force ANSI output', ), |
|
| 23 | + new InputOption('profile', null, InputOption::VALUE_REQUIRED, 'Write profile to a file',), |
|
| 24 | + new InputOption('ansi', null, InputOption::VALUE_OPTIONAL, 'Force ANSI output',), |
|
| 25 | 25 | ]); |
| 26 | 26 | |
| 27 | 27 | $args = IOArguments::collect( |
@@ -29,6 +29,6 @@ discard block |
||
| 29 | 29 | new ConsoleOutput(OutputInterface::VERBOSITY_DEBUG, false), |
| 30 | 30 | ); |
| 31 | 31 | |
| 32 | - self::assertEquals(['--option','env=prod', '--limit', '1', '-vvv'], $args); |
|
| 32 | + self::assertEquals(['--option', 'env=prod', '--limit', '1', '-vvv'], $args); |
|
| 33 | 33 | } |
| 34 | 34 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $this->pop->command($host, 'run', $command); |
| 53 | 53 | |
| 54 | 54 | $terminalOutput = $this->pop->callback($host, $config['real_time_output']); |
| 55 | - $callback = function ($type, $buffer) use ($host, $terminalOutput) { |
|
| 55 | + $callback = function($type, $buffer) use ($host, $terminalOutput) { |
|
| 56 | 56 | $this->logger->printBuffer($host, $type, $buffer); |
| 57 | 57 | $terminalOutput($type, $buffer); |
| 58 | 58 | }; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function callback(Host $host, bool $forceOutput): callable |
| 40 | 40 | { |
| 41 | - return function ($type, $buffer) use ($forceOutput, $host) { |
|
| 41 | + return function($type, $buffer) use ($forceOutput, $host) { |
|
| 42 | 42 | if ($this->output->isVerbose() || $forceOutput) { |
| 43 | 43 | $this->printBuffer($type, $host, $buffer); |
| 44 | 44 | } |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | { |
| 116 | 116 | if (is_string($value)) { |
| 117 | 117 | $normalizedValue = normalize_line_endings($value); |
| 118 | - return preg_replace_callback('/\{\{\s*([\w\.\/-]+)\s*\}\}/', function (array $matches) { |
|
| 118 | + return preg_replace_callback('/\{\{\s*([\w\.\/-]+)\s*\}\}/', function(array $matches) { |
|
| 119 | 119 | return $this->get($matches[1]); |
| 120 | 120 | }, $normalizedValue); |
| 121 | 121 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInit7a5fc401803f479299a0ff9ac4ecb4f6 |
| 8 | 8 | { |
| 9 | - public static $files = array ( |
|
| 9 | + public static $files = array( |
|
| 10 | 10 | '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', |
| 11 | 11 | '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', |
| 12 | 12 | '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', |
@@ -15,9 +15,9 @@ discard block |
||
| 15 | 15 | 'b6b991a57620e2fb6b2f66f03fe9ddc2' => __DIR__ . '/..' . '/symfony/string/Resources/functions.php', |
| 16 | 16 | ); |
| 17 | 17 | |
| 18 | - public static $prefixLengthsPsr4 = array ( |
|
| 18 | + public static $prefixLengthsPsr4 = array( |
|
| 19 | 19 | 'S' => |
| 20 | - array ( |
|
| 20 | + array( |
|
| 21 | 21 | 'Symfony\\Polyfill\\Mbstring\\' => 26, |
| 22 | 22 | 'Symfony\\Polyfill\\Intl\\Normalizer\\' => 33, |
| 23 | 23 | 'Symfony\\Polyfill\\Intl\\Grapheme\\' => 31, |
@@ -29,62 +29,62 @@ discard block |
||
| 29 | 29 | 'Symfony\\Component\\Console\\' => 26, |
| 30 | 30 | ), |
| 31 | 31 | 'P' => |
| 32 | - array ( |
|
| 32 | + array( |
|
| 33 | 33 | 'Psr\\Container\\' => 14, |
| 34 | 34 | ), |
| 35 | 35 | ); |
| 36 | 36 | |
| 37 | - public static $prefixDirsPsr4 = array ( |
|
| 37 | + public static $prefixDirsPsr4 = array( |
|
| 38 | 38 | 'Symfony\\Polyfill\\Mbstring\\' => |
| 39 | - array ( |
|
| 39 | + array( |
|
| 40 | 40 | 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', |
| 41 | 41 | ), |
| 42 | 42 | 'Symfony\\Polyfill\\Intl\\Normalizer\\' => |
| 43 | - array ( |
|
| 43 | + array( |
|
| 44 | 44 | 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer', |
| 45 | 45 | ), |
| 46 | 46 | 'Symfony\\Polyfill\\Intl\\Grapheme\\' => |
| 47 | - array ( |
|
| 47 | + array( |
|
| 48 | 48 | 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme', |
| 49 | 49 | ), |
| 50 | 50 | 'Symfony\\Polyfill\\Ctype\\' => |
| 51 | - array ( |
|
| 51 | + array( |
|
| 52 | 52 | 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype', |
| 53 | 53 | ), |
| 54 | 54 | 'Symfony\\Contracts\\Service\\' => |
| 55 | - array ( |
|
| 55 | + array( |
|
| 56 | 56 | 0 => __DIR__ . '/..' . '/symfony/service-contracts', |
| 57 | 57 | ), |
| 58 | 58 | 'Symfony\\Component\\Yaml\\' => |
| 59 | - array ( |
|
| 59 | + array( |
|
| 60 | 60 | 0 => __DIR__ . '/..' . '/symfony/yaml', |
| 61 | 61 | ), |
| 62 | 62 | 'Symfony\\Component\\String\\' => |
| 63 | - array ( |
|
| 63 | + array( |
|
| 64 | 64 | 0 => __DIR__ . '/..' . '/symfony/string', |
| 65 | 65 | ), |
| 66 | 66 | 'Symfony\\Component\\Process\\' => |
| 67 | - array ( |
|
| 67 | + array( |
|
| 68 | 68 | 0 => __DIR__ . '/..' . '/symfony/process', |
| 69 | 69 | ), |
| 70 | 70 | 'Symfony\\Component\\Console\\' => |
| 71 | - array ( |
|
| 71 | + array( |
|
| 72 | 72 | 0 => __DIR__ . '/..' . '/symfony/console', |
| 73 | 73 | ), |
| 74 | 74 | 'Psr\\Container\\' => |
| 75 | - array ( |
|
| 75 | + array( |
|
| 76 | 76 | 0 => __DIR__ . '/..' . '/psr/container/src', |
| 77 | 77 | ), |
| 78 | 78 | ); |
| 79 | 79 | |
| 80 | - public static $classMap = array ( |
|
| 80 | + public static $classMap = array( |
|
| 81 | 81 | 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
| 82 | 82 | 'Normalizer' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php', |
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | 85 | public static function getInitializer(ClassLoader $loader) |
| 86 | 86 | { |
| 87 | - return \Closure::bind(function () use ($loader) { |
|
| 87 | + return \Closure::bind(function() use ($loader) { |
|
| 88 | 88 | $loader->prefixLengthsPsr4 = ComposerStaticInit7a5fc401803f479299a0ff9ac4ecb4f6::$prefixLengthsPsr4; |
| 89 | 89 | $loader->prefixDirsPsr4 = ComposerStaticInit7a5fc401803f479299a0ff9ac4ecb4f6::$prefixDirsPsr4; |
| 90 | 90 | $loader->classMap = ComposerStaticInit7a5fc401803f479299a0ff9ac4ecb4f6::$classMap; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $loader->register(true); |
| 35 | 35 | |
| 36 | 36 | $filesToLoad = \Composer\Autoload\ComposerStaticInit7a5fc401803f479299a0ff9ac4ecb4f6::$files; |
| 37 | - $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { |
|
| 37 | + $requireFile = \Closure::bind(static function($fileIdentifier, $file) { |
|
| 38 | 38 | if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
| 39 | 39 | $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
| 40 | 40 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | public function __construct( |
| 20 | 20 | public readonly array $command, |
| 21 | 21 | public readonly ?string $cwd = null, |
| 22 | - public readonly ?array $env = null, |
|
| 22 | + public readonly ? array $env = null, |
|
| 23 | 23 | public readonly mixed $input = null, |
| 24 | 24 | public readonly ?float $timeout = 60.0, |
| 25 | 25 | ) { |
@@ -103,14 +103,14 @@ discard block |
||
| 103 | 103 | foreach ($iniFiles as $file) { |
| 104 | 104 | // Check for inaccessible ini files |
| 105 | 105 | if (($data = @file_get_contents($file)) === false) { |
| 106 | - throw new RuntimeException('Unable to read ini: '.$file); |
|
| 106 | + throw new RuntimeException('Unable to read ini: ' . $file); |
|
| 107 | 107 | } |
| 108 | 108 | // Check and remove directives after HOST and PATH sections |
| 109 | 109 | if (preg_match('/^\s*\[(?:PATH|HOST)\s*=/mi', $data, $matches, \PREG_OFFSET_CAPTURE)) { |
| 110 | 110 | $data = substr($data, 0, $matches[0][1]); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - $content .= $data."\n"; |
|
| 113 | + $content .= $data . "\n"; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | // Merge loaded settings into our ini content, if it is valid |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | if (!isset($iniConfig[$name]) || $iniConfig[$name] !== $value) { |
| 146 | 146 | // Double-quote escape each value |
| 147 | - $content .= $name.'="'.addcslashes($value, '\\"')."\"\n"; |
|
| 147 | + $content .= $name . '="' . addcslashes($value, '\\"') . "\"\n"; |
|
| 148 | 148 | } |
| 149 | 149 | } |
| 150 | 150 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | throw new InvalidArgumentException('Expected a process that failed during startup, but the given process was started successfully.'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | - $error = sprintf('The command "%s" failed.'."\n\nWorking directory: %s\n\nError: %s", |
|
| 29 | + $error = sprintf('The command "%s" failed.' . "\n\nWorking directory: %s\n\nError: %s", |
|
| 30 | 30 | $process->getCommandLine(), |
| 31 | 31 | $process->getWorkingDirectory(), |
| 32 | 32 | $message ?? 'unknown' |