@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $matches |
| 52 | 52 | ); |
| 53 | 53 | |
| 54 | - if (! $didMatch) { |
|
| 54 | + if (!$didMatch) { |
|
| 55 | 55 | return false; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -79,14 +79,14 @@ |
||
| 79 | 79 | /* @var $file \Symfony\Component\Finder\SplFileInfo */ |
| 80 | 80 | foreach ($finder as $dir) { |
| 81 | 81 | foreach ($dir as $file) { |
| 82 | - if (! $this->docIsCompatible($validator, $file->getContents(), $docheaderFile)) { |
|
| 82 | + if (!$this->docIsCompatible($validator, $file->getContents(), $docheaderFile)) { |
|
| 83 | 83 | $success = false; |
| 84 | 84 | $output->writeln('-> ' . $file->getRelativePathname()); |
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - if (! $success) { |
|
| 89 | + if (!$success) { |
|
| 90 | 90 | $output->writeln(''); |
| 91 | 91 | $output->writeln('<bg=red;fg=white> Something goes wrong! </>'); |
| 92 | 92 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $pathOrFile .= DIRECTORY_SEPARATOR . '.docheader'; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - if (! is_file($pathOrFile)) { |
|
| 41 | + if (!is_file($pathOrFile)) { |
|
| 42 | 42 | throw DocHeaderFileConfiguration::notFound($pathOrFile); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * @return Finder |
| 87 | 87 | */ |
| 88 | - function ($directoryOrFile) { |
|
| 88 | + function($directoryOrFile) { |
|
| 89 | 89 | $finder = Finder::create() |
| 90 | 90 | ->files() |
| 91 | 91 | ->ignoreDotFiles(true) |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function apply() |
| 50 | 50 | { |
| 51 | - $applyFilters = function ($docheader, $filter) { |
|
| 51 | + $applyFilters = function($docheader, $filter) { |
|
| 52 | 52 | return (new $filter)->__invoke($docheader); |
| 53 | 53 | }; |
| 54 | 54 | |