@@ -115,9 +115,9 @@ |
||
| 115 | 115 | } elseif ($val instanceof \DateTimeInterface) { |
| 116 | 116 | $replacements["{{$key}}"] = $val->format(\DateTime::RFC3339); |
| 117 | 117 | } elseif (\is_object($val)) { |
| 118 | - $replacements["{{$key}}"] = '[object '.\get_class($val).']'; |
|
| 118 | + $replacements["{{$key}}"] = '[object ' . \get_class($val) . ']'; |
|
| 119 | 119 | } else { |
| 120 | - $replacements["{{$key}}"] = '['.\gettype($val).']'; |
|
| 120 | + $replacements["{{$key}}"] = '[' . \gettype($val) . ']'; |
|
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | |
@@ -137,8 +137,8 @@ discard block |
||
| 137 | 137 | public function run(?InputInterface $input = null, ?OutputInterface $output = null) |
| 138 | 138 | { |
| 139 | 139 | if (\function_exists('putenv')) { |
| 140 | - @putenv('LINES='.$this->terminal->getHeight()); |
|
| 141 | - @putenv('COLUMNS='.$this->terminal->getWidth()); |
|
| 140 | + @putenv('LINES=' . $this->terminal->getHeight()); |
|
| 141 | + @putenv('COLUMNS=' . $this->terminal->getWidth()); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | if (null === $input) { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | $output = new ConsoleOutput(); |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | - $renderException = function (\Throwable $e) use ($output) { |
|
| 152 | + $renderException = function(\Throwable $e) use ($output) { |
|
| 153 | 153 | if ($output instanceof ConsoleOutputInterface) { |
| 154 | 154 | $this->renderThrowable($e, $output->getErrorOutput()); |
| 155 | 155 | } else { |
@@ -631,8 +631,8 @@ discard block |
||
| 631 | 631 | public function findNamespace(string $namespace) |
| 632 | 632 | { |
| 633 | 633 | $allNamespaces = $this->getNamespaces(); |
| 634 | - $expr = implode('[^:]*:', array_map('preg_quote', explode(':', $namespace))).'[^:]*'; |
|
| 635 | - $namespaces = preg_grep('{^'.$expr.'}', $allNamespaces); |
|
| 634 | + $expr = implode('[^:]*:', array_map('preg_quote', explode(':', $namespace))) . '[^:]*'; |
|
| 635 | + $namespaces = preg_grep('{^' . $expr . '}', $allNamespaces); |
|
| 636 | 636 | |
| 637 | 637 | if (empty($namespaces)) { |
| 638 | 638 | $message = sprintf('There are no commands defined in the "%s" namespace.', $namespace); |
@@ -687,15 +687,15 @@ discard block |
||
| 687 | 687 | } |
| 688 | 688 | |
| 689 | 689 | $allCommands = $this->commandLoader ? array_merge($this->commandLoader->getNames(), array_keys($this->commands)) : array_keys($this->commands); |
| 690 | - $expr = implode('[^:]*:', array_map('preg_quote', explode(':', $name))).'[^:]*'; |
|
| 691 | - $commands = preg_grep('{^'.$expr.'}', $allCommands); |
|
| 690 | + $expr = implode('[^:]*:', array_map('preg_quote', explode(':', $name))) . '[^:]*'; |
|
| 691 | + $commands = preg_grep('{^' . $expr . '}', $allCommands); |
|
| 692 | 692 | |
| 693 | 693 | if (empty($commands)) { |
| 694 | - $commands = preg_grep('{^'.$expr.'}i', $allCommands); |
|
| 694 | + $commands = preg_grep('{^' . $expr . '}i', $allCommands); |
|
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | // if no commands matched or we just matched namespaces |
| 698 | - if (empty($commands) || \count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) { |
|
| 698 | + if (empty($commands) || \count(preg_grep('{^' . $expr . '$}i', $commands)) < 1) { |
|
| 699 | 699 | if (false !== $pos = strrpos($name, ':')) { |
| 700 | 700 | // check if a namespace exists and contains commands |
| 701 | 701 | $this->findNamespace(substr($name, 0, $pos)); |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | |
| 706 | 706 | if ($alternatives = $this->findAlternatives($name, $allCommands)) { |
| 707 | 707 | // remove hidden commands |
| 708 | - $alternatives = array_filter($alternatives, function ($name) { |
|
| 708 | + $alternatives = array_filter($alternatives, function($name) { |
|
| 709 | 709 | return !$this->get($name)->isHidden(); |
| 710 | 710 | }); |
| 711 | 711 | |
@@ -723,7 +723,7 @@ discard block |
||
| 723 | 723 | // filter out aliases for commands which are already on the list |
| 724 | 724 | if (\count($commands) > 1) { |
| 725 | 725 | $commandList = $this->commandLoader ? array_merge(array_flip($this->commandLoader->getNames()), $this->commands) : $this->commands; |
| 726 | - $commands = array_unique(array_filter($commands, function ($nameOrAlias) use (&$commandList, $commands, &$aliases) { |
|
| 726 | + $commands = array_unique(array_filter($commands, function($nameOrAlias) use (&$commandList, $commands, &$aliases) { |
|
| 727 | 727 | if (!$commandList[$nameOrAlias] instanceof Command) { |
| 728 | 728 | $commandList[$nameOrAlias] = $this->commandLoader->get($nameOrAlias); |
| 729 | 729 | } |
@@ -743,16 +743,16 @@ discard block |
||
| 743 | 743 | foreach ($abbrevs as $abbrev) { |
| 744 | 744 | $maxLen = max(Helper::width($abbrev), $maxLen); |
| 745 | 745 | } |
| 746 | - $abbrevs = array_map(function ($cmd) use ($commandList, $usableWidth, $maxLen, &$commands) { |
|
| 746 | + $abbrevs = array_map(function($cmd) use ($commandList, $usableWidth, $maxLen, &$commands) { |
|
| 747 | 747 | if ($commandList[$cmd]->isHidden()) { |
| 748 | 748 | unset($commands[array_search($cmd, $commands)]); |
| 749 | 749 | |
| 750 | 750 | return false; |
| 751 | 751 | } |
| 752 | 752 | |
| 753 | - $abbrev = str_pad($cmd, $maxLen, ' ').' '.$commandList[$cmd]->getDescription(); |
|
| 753 | + $abbrev = str_pad($cmd, $maxLen, ' ') . ' ' . $commandList[$cmd]->getDescription(); |
|
| 754 | 754 | |
| 755 | - return Helper::width($abbrev) > $usableWidth ? Helper::substr($abbrev, 0, $usableWidth - 3).'...' : $abbrev; |
|
| 755 | + return Helper::width($abbrev) > $usableWidth ? Helper::substr($abbrev, 0, $usableWidth - 3) . '...' : $abbrev; |
|
| 756 | 756 | }, array_values($commands)); |
| 757 | 757 | |
| 758 | 758 | if (\count($commands) > 1) { |
@@ -851,15 +851,15 @@ discard block |
||
| 851 | 851 | $message = trim($e->getMessage()); |
| 852 | 852 | if ('' === $message || OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
| 853 | 853 | $class = get_debug_type($e); |
| 854 | - $title = sprintf(' [%s%s] ', $class, 0 !== ($code = $e->getCode()) ? ' ('.$code.')' : ''); |
|
| 854 | + $title = sprintf(' [%s%s] ', $class, 0 !== ($code = $e->getCode()) ? ' (' . $code . ')' : ''); |
|
| 855 | 855 | $len = Helper::width($title); |
| 856 | 856 | } else { |
| 857 | 857 | $len = 0; |
| 858 | 858 | } |
| 859 | 859 | |
| 860 | 860 | if (str_contains($message, "@anonymous\0")) { |
| 861 | - $message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function ($m) { |
|
| 862 | - return class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0]; |
|
| 861 | + $message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function($m) { |
|
| 862 | + return class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class') . '@anonymous' : $m[0]; |
|
| 863 | 863 | }, $message); |
| 864 | 864 | } |
| 865 | 865 | |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | $file = $trace[$i]['file'] ?? 'n/a'; |
| 912 | 912 | $line = $trace[$i]['line'] ?? 'n/a'; |
| 913 | 913 | |
| 914 | - $output->writeln(sprintf(' %s%s at <info>%s:%s</info>', $class, $function ? $type.$function.'()' : '', $file, $line), OutputInterface::VERBOSITY_QUIET); |
|
| 914 | + $output->writeln(sprintf(' %s%s at <info>%s:%s</info>', $class, $function ? $type . $function . '()' : '', $file, $line), OutputInterface::VERBOSITY_QUIET); |
|
| 915 | 915 | } |
| 916 | 916 | |
| 917 | 917 | $output->writeln('', OutputInterface::VERBOSITY_QUIET); |
@@ -973,7 +973,7 @@ discard block |
||
| 973 | 973 | } |
| 974 | 974 | |
| 975 | 975 | if (\function_exists('putenv')) { |
| 976 | - @putenv('SHELL_VERBOSITY='.$shellVerbosity); |
|
| 976 | + @putenv('SHELL_VERBOSITY=' . $shellVerbosity); |
|
| 977 | 977 | } |
| 978 | 978 | $_ENV['SHELL_VERBOSITY'] = $shellVerbosity; |
| 979 | 979 | $_SERVER['SHELL_VERBOSITY'] = $shellVerbosity; |
@@ -1007,8 +1007,8 @@ discard block |
||
| 1007 | 1007 | $sttyMode = shell_exec('stty -g'); |
| 1008 | 1008 | |
| 1009 | 1009 | foreach ([\SIGINT, \SIGTERM] as $signal) { |
| 1010 | - $this->signalRegistry->register($signal, static function () use ($sttyMode) { |
|
| 1011 | - shell_exec('stty '.$sttyMode); |
|
| 1010 | + $this->signalRegistry->register($signal, static function() use ($sttyMode) { |
|
| 1011 | + shell_exec('stty ' . $sttyMode); |
|
| 1012 | 1012 | }); |
| 1013 | 1013 | } |
| 1014 | 1014 | } |
@@ -1018,7 +1018,7 @@ discard block |
||
| 1018 | 1018 | foreach ($this->signalsToDispatchEvent as $signal) { |
| 1019 | 1019 | $event = new ConsoleSignalEvent($command, $input, $output, $signal); |
| 1020 | 1020 | |
| 1021 | - $this->signalRegistry->register($signal, function ($signal, $hasNext) use ($event) { |
|
| 1021 | + $this->signalRegistry->register($signal, function($signal, $hasNext) use ($event) { |
|
| 1022 | 1022 | $this->dispatcher->dispatch($event, ConsoleEvents::SIGNAL); |
| 1023 | 1023 | |
| 1024 | 1024 | // No more handlers, we try to simulate PHP default behavior |
@@ -1098,7 +1098,7 @@ discard block |
||
| 1098 | 1098 | { |
| 1099 | 1099 | return new InputDefinition([ |
| 1100 | 1100 | new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'), |
| 1101 | - new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display help for the given command. When no command is given display help for the <info>'.$this->defaultCommand.'</info> command'), |
|
| 1101 | + new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display help for the given command. When no command is given display help for the <info>' . $this->defaultCommand . '</info> command'), |
|
| 1102 | 1102 | new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message'), |
| 1103 | 1103 | new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'), |
| 1104 | 1104 | new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'), |
@@ -1137,7 +1137,7 @@ discard block |
||
| 1137 | 1137 | */ |
| 1138 | 1138 | private function getAbbreviationSuggestions(array $abbrevs): string |
| 1139 | 1139 | { |
| 1140 | - return ' '.implode("\n ", $abbrevs); |
|
| 1140 | + return ' ' . implode("\n ", $abbrevs); |
|
| 1141 | 1141 | } |
| 1142 | 1142 | |
| 1143 | 1143 | /** |
@@ -1196,7 +1196,7 @@ discard block |
||
| 1196 | 1196 | } |
| 1197 | 1197 | } |
| 1198 | 1198 | |
| 1199 | - $alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2 * $threshold; }); |
|
| 1199 | + $alternatives = array_filter($alternatives, function($lev) use ($threshold) { return $lev < 2 * $threshold; }); |
|
| 1200 | 1200 | ksort($alternatives, \SORT_NATURAL | \SORT_FLAG_CASE); |
| 1201 | 1201 | |
| 1202 | 1202 | return array_keys($alternatives); |
@@ -1248,7 +1248,7 @@ discard block |
||
| 1248 | 1248 | |
| 1249 | 1249 | foreach (preg_split('//u', $m[0]) as $char) { |
| 1250 | 1250 | // test if $char could be appended to current line |
| 1251 | - if (mb_strwidth($line.$char, 'utf8') <= $width) { |
|
| 1251 | + if (mb_strwidth($line . $char, 'utf8') <= $width) { |
|
| 1252 | 1252 | $line .= $char; |
| 1253 | 1253 | continue; |
| 1254 | 1254 | } |
@@ -1278,7 +1278,7 @@ discard block |
||
| 1278 | 1278 | |
| 1279 | 1279 | foreach ($parts as $part) { |
| 1280 | 1280 | if (\count($namespaces)) { |
| 1281 | - $namespaces[] = end($namespaces).':'.$part; |
|
| 1281 | + $namespaces[] = end($namespaces) . ':' . $part; |
|
| 1282 | 1282 | } else { |
| 1283 | 1283 | $namespaces[] = $part; |
| 1284 | 1284 | } |
@@ -23,9 +23,9 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $values = $suggestions->getValueSuggestions(); |
| 25 | 25 | foreach ($suggestions->getOptionSuggestions() as $option) { |
| 26 | - $values[] = '--'.$option->getName(); |
|
| 26 | + $values[] = '--' . $option->getName(); |
|
| 27 | 27 | if ($option->isNegatable()) { |
| 28 | - $values[] = '--no-'.$option->getName(); |
|
| 28 | + $values[] = '--no-' . $option->getName(); |
|
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | $output->writeln(implode("\n", $values)); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | protected function configure(): void |
| 50 | 50 | { |
| 51 | 51 | $this |
| 52 | - ->addOption('shell', 's', InputOption::VALUE_REQUIRED, 'The shell type ("'.implode('", "', array_keys($this->completionOutputs)).'")') |
|
| 52 | + ->addOption('shell', 's', InputOption::VALUE_REQUIRED, 'The shell type ("' . implode('", "', array_keys($this->completionOutputs)) . '")') |
|
| 53 | 53 | ->addOption('input', 'i', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'An array of input tokens (e.g. COMP_WORDS or argv)') |
| 54 | 54 | ->addOption('current', 'c', InputOption::VALUE_REQUIRED, 'The index of the "input" array that the cursor is in (e.g. COMP_CWORD)') |
| 55 | 55 | ->addOption('symfony', 'S', InputOption::VALUE_REQUIRED, 'The version of the completion script') |
@@ -89,11 +89,11 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | $this->log([ |
| 91 | 91 | '', |
| 92 | - '<comment>'.date('Y-m-d H:i:s').'</>', |
|
| 92 | + '<comment>' . date('Y-m-d H:i:s') . '</>', |
|
| 93 | 93 | '<info>Input:</> <comment>("|" indicates the cursor position)</>', |
| 94 | - ' '.(string) $completionInput, |
|
| 94 | + ' ' . (string) $completionInput, |
|
| 95 | 95 | '<info>Command:</>', |
| 96 | - ' '.(string) implode(' ', $_SERVER['argv']), |
|
| 96 | + ' ' . (string) implode(' ', $_SERVER['argv']), |
|
| 97 | 97 | '<info>Messages:</>', |
| 98 | 98 | ]); |
| 99 | 99 | |
@@ -116,16 +116,16 @@ discard block |
||
| 116 | 116 | $completionInput->bind($command->getDefinition()); |
| 117 | 117 | |
| 118 | 118 | if (CompletionInput::TYPE_OPTION_NAME === $completionInput->getCompletionType()) { |
| 119 | - $this->log(' Completing option names for the <comment>'.\get_class($command instanceof LazyCommand ? $command->getCommand() : $command).'</> command.'); |
|
| 119 | + $this->log(' Completing option names for the <comment>' . \get_class($command instanceof LazyCommand ? $command->getCommand() : $command) . '</> command.'); |
|
| 120 | 120 | |
| 121 | 121 | $suggestions->suggestOptions($command->getDefinition()->getOptions()); |
| 122 | 122 | } else { |
| 123 | 123 | $this->log([ |
| 124 | - ' Completing using the <comment>'.\get_class($command instanceof LazyCommand ? $command->getCommand() : $command).'</> class.', |
|
| 125 | - ' Completing <comment>'.$completionInput->getCompletionType().'</> for <comment>'.$completionInput->getCompletionName().'</>', |
|
| 124 | + ' Completing using the <comment>' . \get_class($command instanceof LazyCommand ? $command->getCommand() : $command) . '</> class.', |
|
| 125 | + ' Completing <comment>' . $completionInput->getCompletionType() . '</> for <comment>' . $completionInput->getCompletionName() . '</>', |
|
| 126 | 126 | ]); |
| 127 | 127 | if (null !== $compval = $completionInput->getCompletionValue()) { |
| 128 | - $this->log(' Current value: <comment>'.$compval.'</>'); |
|
| 128 | + $this->log(' Current value: <comment>' . $compval . '</>'); |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | $command->complete($completionInput, $suggestions); |
@@ -137,9 +137,9 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | $this->log('<info>Suggestions:</>'); |
| 139 | 139 | if ($options = $suggestions->getOptionSuggestions()) { |
| 140 | - $this->log(' --'.implode(' --', array_map(function ($o) { return $o->getName(); }, $options))); |
|
| 140 | + $this->log(' --' . implode(' --', array_map(function($o) { return $o->getName(); }, $options))); |
|
| 141 | 141 | } elseif ($values = $suggestions->getValueSuggestions()) { |
| 142 | - $this->log(' '.implode(' ', $values)); |
|
| 142 | + $this->log(' ' . implode(' ', $values)); |
|
| 143 | 143 | } else { |
| 144 | 144 | $this->log(' <comment>No suggestions were provided</>'); |
| 145 | 145 | } |
@@ -200,6 +200,6 @@ discard block |
||
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | $commandName = basename($_SERVER['argv'][0]); |
| 203 | - file_put_contents(sys_get_temp_dir().'/sf_'.$commandName.'.log', implode(\PHP_EOL, (array) $messages).\PHP_EOL, \FILE_APPEND); |
|
| 203 | + file_put_contents(sys_get_temp_dir() . '/sf_' . $commandName . '.log', implode(\PHP_EOL, (array) $messages) . \PHP_EOL, \FILE_APPEND); |
|
| 204 | 204 | } |
| 205 | 205 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $shell = $input->getArgument('shell') ?? self::guessShell(); |
| 92 | - $completionFile = __DIR__.'/../Resources/completion.'.$shell; |
|
| 92 | + $completionFile = __DIR__ . '/../Resources/completion.' . $shell; |
|
| 93 | 93 | if (!file_exists($completionFile)) { |
| 94 | 94 | $supportedShells = $this->getSupportedShells(); |
| 95 | 95 | |
@@ -117,12 +117,12 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | private function tailDebugLog(string $commandName, OutputInterface $output): void |
| 119 | 119 | { |
| 120 | - $debugFile = sys_get_temp_dir().'/sf_'.$commandName.'.log'; |
|
| 120 | + $debugFile = sys_get_temp_dir() . '/sf_' . $commandName . '.log'; |
|
| 121 | 121 | if (!file_exists($debugFile)) { |
| 122 | 122 | touch($debugFile); |
| 123 | 123 | } |
| 124 | 124 | $process = new Process(['tail', '-f', $debugFile], null, null, null, 0); |
| 125 | - $process->run(function (string $type, string $line) use ($output): void { |
|
| 125 | + $process->run(function(string $type, string $line) use ($output): void { |
|
| 126 | 126 | $output->write($line); |
| 127 | 127 | }); |
| 128 | 128 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | { |
| 135 | 135 | $shells = []; |
| 136 | 136 | |
| 137 | - foreach (new \DirectoryIterator(__DIR__.'/../Resources/') as $file) { |
|
| 137 | + foreach (new \DirectoryIterator(__DIR__ . '/../Resources/') as $file) { |
|
| 138 | 138 | if (str_starts_with($file->getBasename(), 'completion.') && $file->isFile()) { |
| 139 | 139 | $shells[] = $file->getExtension(); |
| 140 | 140 | } |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | if ($code instanceof \Closure) { |
| 332 | 332 | $r = new \ReflectionFunction($code); |
| 333 | 333 | if (null === $r->getClosureThis()) { |
| 334 | - set_error_handler(static function () {}); |
|
| 334 | + set_error_handler(static function() {}); |
|
| 335 | 335 | try { |
| 336 | 336 | if ($c = \Closure::bind($code, $this)) { |
| 337 | 337 | $code = $c; |
@@ -594,7 +594,7 @@ discard block |
||
| 594 | 594 | ]; |
| 595 | 595 | $replacements = [ |
| 596 | 596 | $name, |
| 597 | - $isSingleCommand ? $_SERVER['PHP_SELF'] : $_SERVER['PHP_SELF'].' '.$name, |
|
| 597 | + $isSingleCommand ? $_SERVER['PHP_SELF'] : $_SERVER['PHP_SELF'] . ' ' . $name, |
|
| 598 | 598 | ]; |
| 599 | 599 | |
| 600 | 600 | return str_replace($placeholders, $replacements, $this->getHelp() ?: $this->getDescription()); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | protected function failureDescription($other): string |
| 39 | 39 | { |
| 40 | - return 'the command '.$this->toString(); |
|
| 40 | + return 'the command ' . $this->toString(); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | unset($_SERVER['SHELL_VERBOSITY']); |
| 76 | 76 | } else { |
| 77 | 77 | if (\function_exists('putenv')) { |
| 78 | - @putenv('SHELL_VERBOSITY='.$prevShellVerbosity); |
|
| 78 | + @putenv('SHELL_VERBOSITY=' . $prevShellVerbosity); |
|
| 79 | 79 | } |
| 80 | 80 | $_ENV['SHELL_VERBOSITY'] = $prevShellVerbosity; |
| 81 | 81 | $_SERVER['SHELL_VERBOSITY'] = $prevShellVerbosity; |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | $stream = fopen('php://memory', 'r+', false); |
| 188 | 188 | |
| 189 | 189 | foreach ($inputs as $input) { |
| 190 | - fwrite($stream, $input.\PHP_EOL); |
|
| 190 | + fwrite($stream, $input . \PHP_EOL); |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | rewind($stream); |