@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | private function recordCatchUsage(Node $node) |
| 91 | 91 | { |
| 92 | 92 | if ($node instanceof Node\Stmt\Catch_) { |
| 93 | - foreach($node->types as $type) { |
|
| 93 | + foreach ($node->types as $type) { |
|
| 94 | 94 | $this->recordUsageOf($type); |
| 95 | 95 | } |
| 96 | 96 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | private function recordTraitUsage(Node $node) |
| 148 | 148 | { |
| 149 | - if (! $node instanceof Node\Stmt\TraitUse) { |
|
| 149 | + if (!$node instanceof Node\Stmt\TraitUse) { |
|
| 150 | 150 | return; |
| 151 | 151 | } |
| 152 | 152 | |
@@ -29,14 +29,14 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $flattened = array_reduce( |
| 31 | 31 | $sourceDirs, |
| 32 | - function (array $sourceDirs, $sourceDir) { |
|
| 33 | - return array_merge($sourceDirs, (array)$sourceDir); |
|
| 32 | + function(array $sourceDirs, $sourceDir) { |
|
| 33 | + return array_merge($sourceDirs, (array) $sourceDir); |
|
| 34 | 34 | }, |
| 35 | 35 | [] |
| 36 | 36 | ); |
| 37 | 37 | return array_values(array_map( |
| 38 | - function (string $sourceDir) use ($packageDir) { |
|
| 39 | - return $packageDir . '/' . ltrim($sourceDir, '/'); |
|
| 38 | + function(string $sourceDir) use ($packageDir) { |
|
| 39 | + return $packageDir.'/'.ltrim($sourceDir, '/'); |
|
| 40 | 40 | }, |
| 41 | 41 | $flattened |
| 42 | 42 | )); |