@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $maxColumns = floor($this->getScreenColumns() / 2); |
| 192 | 192 | $verbosity = $output->getVerbosity(); |
| 193 | 193 | |
| 194 | - $linter->setProcessCallback(function ($status, $filename) use ($output, $verbosity, $fileCount, $maxColumns) { |
|
| 194 | + $linter->setProcessCallback(function($status, $filename) use ($output, $verbosity, $fileCount, $maxColumns) { |
|
| 195 | 195 | static $i = 0; |
| 196 | 196 | |
| 197 | 197 | if ($i && $i % $maxColumns === 0) { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | } |
| 201 | 201 | ++$i; |
| 202 | 202 | if ($verbosity >= OutputInterface::VERBOSITY_VERBOSE) { |
| 203 | - $output->writeln('Linting: '.$filename. "\t".($status === 'ok' ? '<info>OK</info>' : '<error>Error</error>')); |
|
| 203 | + $output->writeln('Linting: '.$filename."\t".($status === 'ok' ? '<info>OK</info>' : '<error>Error</error>')); |
|
| 204 | 204 | } else { |
| 205 | 205 | $output->write($status === 'ok' ? '<info>.</info>' : '<error>E</error>'); |
| 206 | 206 | } |
@@ -81,13 +81,13 @@ |
||
| 81 | 81 | $files = $this->getFiles(); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - $processCallback = is_callable($this->processCallback) ? $this->processCallback : function () { |
|
| 84 | + $processCallback = is_callable($this->processCallback) ? $this->processCallback : function() { |
|
| 85 | 85 | }; |
| 86 | 86 | |
| 87 | 87 | $errors = []; |
| 88 | 88 | $running = []; |
| 89 | 89 | $newCache = []; |
| 90 | - $phpbin = PHP_SAPI == 'cli' ? PHP_BINARY : PHP_BINDIR .'/php'; |
|
| 90 | + $phpbin = PHP_SAPI == 'cli' ? PHP_BINARY : PHP_BINDIR.'/php'; |
|
| 91 | 91 | |
| 92 | 92 | while (!empty($files) || !empty($running)) { |
| 93 | 93 | for ($i = count($running); !empty($files) && $i < $this->procLimit; ++$i) { |