Completed
Pull Request — master (#16)
by Rudolph
07:15
created
src/ComposerRequireChecker/NodeVisitor/UsedSymbolCollector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ComposerRequireChecker/FileLocator/LocateComposerPackageSourceFiles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
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
         ));
Please login to merge, or discard this patch.