@@ -21,11 +21,11 @@ |
||
| 21 | 21 | |
| 22 | 22 | private function filterFilesByExtension(Traversable $files, string $fileExtension) : Traversable |
| 23 | 23 | { |
| 24 | - $extensionMatcher = '/.*' . preg_quote($fileExtension) . '$/'; |
|
| 24 | + $extensionMatcher = '/.*'.preg_quote($fileExtension).'$/'; |
|
| 25 | 25 | |
| 26 | 26 | /* @var $file \SplFileInfo */ |
| 27 | 27 | foreach ($files as $file) { |
| 28 | - if (! preg_match($extensionMatcher, $file->getBasename())) { |
|
| 28 | + if (!preg_match($extensionMatcher, $file->getBasename())) { |
|
| 29 | 29 | continue; |
| 30 | 30 | } |
| 31 | 31 | |
@@ -11,18 +11,18 @@ |
||
| 11 | 11 | $packageDir = dirname($composerJsonPath); |
| 12 | 12 | |
| 13 | 13 | $vendorDirs = array_values(array_map( |
| 14 | - function (string $vendorName) use ($packageDir) { |
|
| 15 | - return $packageDir . '/vendor/' . $vendorName; |
|
| 14 | + function(string $vendorName) use ($packageDir) { |
|
| 15 | + return $packageDir.'/vendor/'.$vendorName; |
|
| 16 | 16 | }, |
| 17 | 17 | array_keys(json_decode(file_get_contents($composerJsonPath), true)['require'] ?? []) |
| 18 | 18 | )); |
| 19 | 19 | |
| 20 | 20 | foreach ($vendorDirs as $vendorDir) { |
| 21 | - if (! file_exists($vendorDir . '/composer.json')) { |
|
| 21 | + if (!file_exists($vendorDir.'/composer.json')) { |
|
| 22 | 22 | continue; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - yield from (new LocateComposerPackageSourceFiles())->__invoke($vendorDir . '/composer.json'); |
|
| 25 | + yield from (new LocateComposerPackageSourceFiles())->__invoke($vendorDir.'/composer.json'); |
|
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | 28 | } |