@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @param InputInterface $input User input on console |
| 61 | 61 | * |
| 62 | - * @return Finder|SplFileInfo[] finder |
|
| 62 | + * @return Finder finder |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getFinder($input) |
| 65 | 65 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | try { |
| 50 | 50 | $exitCode = $this->doImport($this->getFinder($input), $input, $output); |
| 51 | 51 | } catch (MissingTargetException $e) { |
| 52 | - $output->writeln('<error>' . $e->getMessage() . '</error>'); |
|
| 52 | + $output->writeln('<error>'.$e->getMessage().'</error>'); |
|
| 53 | 53 | } |
| 54 | 54 | return $exitCode; |
| 55 | 55 | } |
@@ -76,8 +76,8 @@ discard block |
||
| 76 | 76 | * @param SplFileInfo $file |
| 77 | 77 | * @return bool |
| 78 | 78 | */ |
| 79 | - $filter = function (SplFileInfo $file) { |
|
| 80 | - if (!in_array($file->getExtension(), ['yml','json']) || $file->isDir()) { |
|
| 79 | + $filter = function(SplFileInfo $file) { |
|
| 80 | + if (!in_array($file->getExtension(), ['yml', 'json']) || $file->isDir()) { |
|
| 81 | 81 | return false; |
| 82 | 82 | } |
| 83 | 83 | return true; |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $fileList = array_filter( |
| 104 | 104 | $fileList, |
| 105 | - function ($val) { |
|
| 105 | + function($val) { |
|
| 106 | 106 | if (!empty($val)) { |
| 107 | 107 | return true; |
| 108 | 108 | } |