Completed
Push — develop ( 34db25...1b1cc6 )
by Paul
02:36
created
src/Parser/NodeParser/UseNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function invoke($node, NodeInterface $parent): void
28 28
     {
29
-        if (! $node instanceof Node\Stmt\Use_ || ! $parent instanceof PhpFileModelInterface) {
29
+        if (!$node instanceof Node\Stmt\Use_ || !$parent instanceof PhpFileModelInterface) {
30 30
             throw new Exception('UseNodeParser is made to parse a use node');
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Parser/NodeParser/ValueNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function invoke($node, NodeInterface $parent): void
30 30
     {
31
-        if (! $node instanceof Node\Expr || ! $parent instanceof VariableLikeInterface) {
31
+        if (!$node instanceof Node\Expr || !$parent instanceof VariableLikeInterface) {
32 32
             throw new Exception('ValueNodeParser is made to parse a expression node');
33 33
         }
34 34
     }
Please login to merge, or discard this patch.
src/Parser/NodeParser/TypeNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function invoke($node, NodeInterface $parent): void
31 31
     {
32
-        if (! $parent instanceof TypeInterface) {
32
+        if (!$parent instanceof TypeInterface) {
33 33
             throw new Exception('TypeNodeParser is made to parse a type node');
34 34
         }
35 35
 
Please login to merge, or discard this patch.
src/Parser/NodeParser/FunctionNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function invoke($node, NodeInterface $parent): void
29 29
     {
30
-        if (! $node instanceof Node\Stmt\Function_ || ! $parent instanceof PhpFileModelInterface) {
30
+        if (!$node instanceof Node\Stmt\Function_ || !$parent instanceof PhpFileModelInterface) {
31 31
             throw new Exception('FunctionNodeParser is made to parse a function node');
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Parser/NodeParser/ParameterNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public function invoke($node, NodeInterface $parent): void
51 51
     {
52
-        if (! $node instanceof Node\Param || ! $parent instanceof FunctionModelInterface) {
52
+        if (!$node instanceof Node\Param || !$parent instanceof FunctionModelInterface) {
53 53
             throw new Exception('ParameterNodeParser is made to parse a function parameter node');
54 54
         }
55 55
 
Please login to merge, or discard this patch.
src/Parser/NodeParser/InterfaceNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     public function invoke($node, NodeInterface $parent): void
62 62
     {
63 63
         if ($this->config->hasInterfaceParsing()) {
64
-            if (! $node instanceof Node\Stmt\Interface_ || ! $parent instanceof PhpFileModelInterface) {
64
+            if (!$node instanceof Node\Stmt\Interface_ || !$parent instanceof PhpFileModelInterface) {
65 65
                 throw new Exception('InterfaceNodeParser is made to parse an interface node');
66 66
             }
67 67
 
Please login to merge, or discard this patch.
src/Parser/NodeParser/MethodNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function invoke($node, NodeInterface $parent): void
32 32
     {
33
-        if (! $node instanceof Node\Stmt\ClassMethod || ! $parent instanceof InterfaceModelInterface) {
33
+        if (!$node instanceof Node\Stmt\ClassMethod || !$parent instanceof InterfaceModelInterface) {
34 34
             throw new Exception('MethodNodeParser is made to parse a method node');
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/Parser/NodeParser/DocumentationNodeParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function invoke($node, NodeInterface $parent): void
102 102
     {
103
-        if (! $node instanceof Doc || ! $parent instanceof DocumentationInterface) {
103
+        if (!$node instanceof Doc || !$parent instanceof DocumentationInterface) {
104 104
             throw new Exception('DocumentationNodeParser is made to parse a documentation node');
105 105
         }
106 106
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                 // It is a string opening.
304 304
                 $this->openedStringToken = $type;
305 305
             } else {
306
-                if (! $this->currentlyEscaping && $type === $this->openedStringToken) {
306
+                if (!$this->currentlyEscaping && $type === $this->openedStringToken) {
307 307
                     // We are in a string, the token is not escaped and is the same as the string opening token.
308 308
                     // Close the string.
309 309
                     $this->openedStringToken = null;
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     private function afterConsume(int $type): void
321 321
     {
322 322
         // Put in escaping mode if it were not escaping and there is a backslash token.
323
-        if (! $this->currentlyEscaping && $type === Lexer::T_BACKSLASH) {
323
+        if (!$this->currentlyEscaping && $type === Lexer::T_BACKSLASH) {
324 324
             $this->currentlyEscaping = true;
325 325
         } else {
326 326
             $this->currentlyEscaping = false;
Please login to merge, or discard this patch.
src/Parser/NodeParser/ClassNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function invoke($node, NodeInterface $parent): void
55 55
     {
56
-        if (! $node instanceof Node\Stmt\Class_ || ! $parent instanceof PhpFileModelInterface) {
56
+        if (!$node instanceof Node\Stmt\Class_ || !$parent instanceof PhpFileModelInterface) {
57 57
             throw new Exception('ClassNodeParser is made to parse a class node');
58 58
         }
59 59
         $class = new ClassModel();
Please login to merge, or discard this patch.