@@ -154,7 +154,7 @@ |
||
154 | 154 | * |
155 | 155 | * @param callable $processCallback |
156 | 156 | * |
157 | - * @return ParallelLint |
|
157 | + * @return Linter |
|
158 | 158 | */ |
159 | 159 | public function setProcessCallback($processCallback) |
160 | 160 | { |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $files = $this->getFiles(); |
72 | 72 | } |
73 | 73 | |
74 | - $processCallback = is_callable($this->processCallback) ? $this->processCallback : function () { |
|
74 | + $processCallback = is_callable($this->processCallback) ? $this->processCallback : function() { |
|
75 | 75 | }; |
76 | 76 | |
77 | 77 | $errors = []; |
@@ -33,22 +33,22 @@ |
||
33 | 33 | 'Path to file or directory to lint' |
34 | 34 | ) |
35 | 35 | ->addOption( |
36 | - 'exclude', |
|
37 | - null, |
|
38 | - InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
39 | - 'Path to file or directory to exclude from linting' |
|
36 | + 'exclude', |
|
37 | + null, |
|
38 | + InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
39 | + 'Path to file or directory to exclude from linting' |
|
40 | 40 | ) |
41 | 41 | ->addOption( |
42 | - 'extensions', |
|
43 | - null, |
|
44 | - InputOption::VALUE_REQUIRED, |
|
45 | - 'Check only files with selected extensions (default: php)' |
|
42 | + 'extensions', |
|
43 | + null, |
|
44 | + InputOption::VALUE_REQUIRED, |
|
45 | + 'Check only files with selected extensions (default: php)' |
|
46 | 46 | ) |
47 | 47 | ->addOption( |
48 | - 'jobs', |
|
49 | - 'j', |
|
50 | - InputOption::VALUE_REQUIRED, |
|
51 | - 'Number of parraled jobs to run (default: 5)' |
|
48 | + 'jobs', |
|
49 | + 'j', |
|
50 | + InputOption::VALUE_REQUIRED, |
|
51 | + 'Number of parraled jobs to run (default: 5)' |
|
52 | 52 | ); |
53 | 53 | } |
54 | 54 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $progress->setFormat("%filename%\n\n%current%/%max% [%bar%] %percent:3s%% %elapsed:6s%\n"); |
96 | 96 | $progress->start(); |
97 | 97 | |
98 | - $linter->setProcessCallback(function ($status, $filename) use ($progress) { |
|
98 | + $linter->setProcessCallback(function($status, $filename) use ($progress) { |
|
99 | 99 | $progress->setMessage("<info>Checking: </info>{$filename}", 'filename'); |
100 | 100 | $progress->advance(); |
101 | 101 | }); |