@@ -28,7 +28,7 @@ |
||
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 | } |
@@ -29,7 +29,7 @@ |
||
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 |
@@ -27,7 +27,7 @@ |
||
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 |
@@ -49,7 +49,7 @@ |
||
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 |
@@ -61,7 +61,7 @@ |
||
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 |
@@ -53,7 +53,7 @@ |
||
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(); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function invoke($node, NodeInterface $parent): void |
58 | 58 | { |
59 | - if (! $node instanceof Node\Stmt\Namespace_ || ! $parent instanceof PhpFileModelInterface) { |
|
59 | + if (!$node instanceof Node\Stmt\Namespace_ || !$parent instanceof PhpFileModelInterface) { |
|
60 | 60 | throw new Exception('NamespaceNodeParser is made to parse a namespace node'); |
61 | 61 | } |
62 | 62 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function invoke($node, NodeInterface $parent): void |
28 | 28 | { |
29 | - if (! $node instanceof Node\Stmt\GroupUse || ! $parent instanceof PhpFileModelInterface) { |
|
29 | + if (!$node instanceof Node\Stmt\GroupUse || !$parent instanceof PhpFileModelInterface) { |
|
30 | 30 | throw new Exception('GroupUseNodeParser is made to parse a use group node'); |
31 | 31 | } |
32 | 32 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | */ |
54 | 54 | public function invoke($node, NodeInterface $parent): void |
55 | 55 | { |
56 | - if (! $node instanceof Node\Stmt\Trait_ || ! $parent instanceof PhpFileModelInterface) { |
|
56 | + if (!$node instanceof Node\Stmt\Trait_ || !$parent instanceof PhpFileModelInterface) { |
|
57 | 57 | throw new Exception('TraitNodeParser is made to parse a trait node'); |
58 | 58 | } |
59 | 59 |