@@ -50,6 +50,9 @@ |
||
| 50 | 50 | $this->excludedFiles = $excludedFiles; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @return string |
|
| 55 | + */ |
|
| 53 | 56 | private function getDirectory($directoryOrFile) |
| 54 | 57 | { |
| 55 | 58 | return is_dir($directoryOrFile) ? $directoryOrFile : dirname($directoryOrFile); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | public function __invoke() |
| 69 | 69 | { |
| 70 | 70 | return array_map( |
| 71 | - function ($directoryOrFile) { |
|
| 71 | + function($directoryOrFile) { |
|
| 72 | 72 | $finder = Finder::create() |
| 73 | 73 | ->files() |
| 74 | 74 | ->ignoreDotFiles(true) |
@@ -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 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | /* @var $file \Symfony\Component\Finder\SplFileInfo */ |
| 84 | 84 | foreach ($finder as $dir) { |
| 85 | 85 | foreach ($dir as $file) { |
| 86 | - if (! $this->docIsCompatible($validator, $file->getContents(), $docheaderFile)) { |
|
| 86 | + if (!$this->docIsCompatible($validator, $file->getContents(), $docheaderFile)) { |
|
| 87 | 87 | defined('FAILED') ?: define('FAILED', 1); |
| 88 | 88 | $output->writeln('-> ' . $file->getRelativePathname()); |
| 89 | 89 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $pathOrFile .= '/.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 | |