Failed Conditions
Pull Request — master (#38)
by Matthias
02:53
created
src/ComposerRequireChecker/NodeVisitor/UsedSymbolCollector.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     private function recordUsageOf(Node\Name $symbol)
170 170
     {
171
-        $this->collectedSymbols[(string) $symbol] = $symbol;
171
+        $this->collectedSymbols[(string)$symbol] = $symbol;
172 172
     }
173 173
 
174 174
     /**
Please login to merge, or discard this patch.
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.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
      */
91 91
     private function recordDefinitionOf(Node $node)
92 92
     {
93
-        if (! isset($node->namespacedName)) {
93
+        if (!isset($node->namespacedName)) {
94 94
             throw new \UnexpectedValueException(sprintf(
95 95
                 'Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: '
96 96
                 . 'did you pass it through a name resolver visitor?',
@@ -99,6 +99,6 @@  discard block
 block discarded – undo
99 99
             ));
100 100
         }
101 101
 
102
-        $this->definedSymbols[(string) $node->namespacedName] = $node->namespacedName;
102
+        $this->definedSymbols[(string)$node->namespacedName] = $node->namespacedName;
103 103
     }
104 104
 }
Please login to merge, or discard this patch.