Completed
Pull Request — master (#11)
by Rudolph
02:01
created
FileLocator/LocateComposerPackageDirectDependenciesSourceFiles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
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.