@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * @param string $pattern |
44 | 44 | * |
45 | - * @return Generator |
|
45 | + * @return \Generator |
|
46 | 46 | */ |
47 | 47 | public static function commitedFiles($pattern = self::PHP_FILES) |
48 | 48 | { |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Symfony\Component\Console\Input\InputInterface; |
16 | 16 | use Symfony\Component\Console\Output\OutputInterface; |
17 | 17 | use Symfony\Component\Process\ProcessBuilder; |
18 | -use Symfony\Component\Yaml\Yaml; |
|
19 | 18 | |
20 | 19 | /** |
21 | 20 | * CodeQualityTool. |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | |
219 | 219 | $test = $processBuilder->getProcess(); |
220 | 220 | $test->run( |
221 | - function ($type, $buffer) { |
|
221 | + function($type, $buffer) { |
|
222 | 222 | $this->output->write($buffer); |
223 | 223 | } |
224 | 224 | ); |
@@ -246,8 +246,8 @@ discard block |
||
246 | 246 | $succeed = true; |
247 | 247 | $config = ConfigUtils::getConfig('phpcsfixer', array( |
248 | 248 | 'fixers' => [ |
249 | - '-psr0','eof_ending','indentation','linefeed','lowercase_keywords','trailing_spaces', 'short_tag', |
|
250 | - 'php_closing_tag','extra_empty_lines','elseif','function_declaration', '-phpdoc_scalar', '-phpdoc_types' |
|
249 | + '-psr0', 'eof_ending', 'indentation', 'linefeed', 'lowercase_keywords', 'trailing_spaces', 'short_tag', |
|
250 | + 'php_closing_tag', 'extra_empty_lines', 'elseif', 'function_declaration', '-phpdoc_scalar', '-phpdoc_types' |
|
251 | 251 | ], |
252 | 252 | 'triggered_by' => 'php' |
253 | 253 | )); |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | |
320 | 320 | $processBuilder->setWorkingDirectory(getcwd()); |
321 | 321 | $phpCsFixer = $processBuilder->getProcess(); |
322 | - $phpCsFixer->run(function ($type, $buffer) { |
|
322 | + $phpCsFixer->run(function($type, $buffer) { |
|
323 | 323 | $this->output->write($buffer); |
324 | 324 | }); |
325 | 325 | |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | |
337 | 337 | $processBuilder->setWorkingDirectory(getcwd()); |
338 | 338 | $phpCsFixer = $processBuilder->getProcess(); |
339 | - $phpCsFixer->run(function ($type, $buffer) { |
|
339 | + $phpCsFixer->run(function($type, $buffer) { |
|
340 | 340 | $this->output->write($buffer); |
341 | 341 | }); |
342 | 342 |
@@ -52,8 +52,8 @@ |
||
52 | 52 | { |
53 | 53 | $config = ConfigUtils::getConfig('phpcsfixer', array( |
54 | 54 | 'fixers' => [ |
55 | - '-psr0','eof_ending','indentation','linefeed','lowercase_keywords','trailing_spaces', 'short_tag', |
|
56 | - 'php_closing_tag','extra_empty_lines','elseif','function_declaration', '-phpdoc_scalar', '-phpdoc_types' |
|
55 | + '-psr0', 'eof_ending', 'indentation', 'linefeed', 'lowercase_keywords', 'trailing_spaces', 'short_tag', |
|
56 | + 'php_closing_tag', 'extra_empty_lines', 'elseif', 'function_declaration', '-phpdoc_scalar', '-phpdoc_types' |
|
57 | 57 | ] |
58 | 58 | )); |
59 | 59 |