@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } catch (JsonException $exception) { |
| 44 | 44 | throw new AnnotationParseException('"setter" annotation content is invalid (invalid JSON content)'); |
| 45 | 45 | } |
| 46 | - if (! is_string($decoded)) { |
|
| 46 | + if (!is_string($decoded)) { |
|
| 47 | 47 | throw new AnnotationParseException( |
| 48 | 48 | '"setter" annotation content is invalid (property name must be a string)' |
| 49 | 49 | ); |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | private function saveFunctionAnnotation(FunctionModelInterface $parent, AnnotationInterface $annotation): void |
| 60 | 60 | { |
| 61 | - if (! $parent->isGlobal() && $parent->isPublic()) { |
|
| 61 | + if (!$parent->isGlobal() && $parent->isPublic()) { |
|
| 62 | 62 | // For public or not global function, all annotation except constructor |
| 63 | 63 | if ($annotation->getType() !== AnnotationInterface::TYPE_CONSTRUCT) { |
| 64 | 64 | $annotation->setParentNode($parent); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } catch (JsonException $exception) { |
| 44 | 44 | throw new AnnotationParseException('"getter" annotation content is invalid (invalid JSON content)'); |
| 45 | 45 | } |
| 46 | - if (! is_string($decoded)) { |
|
| 46 | + if (!is_string($decoded)) { |
|
| 47 | 47 | throw new AnnotationParseException( |
| 48 | 48 | '"getter" annotation content is invalid (property name must be a string)' |
| 49 | 49 | ); |
@@ -26,7 +26,7 @@ |
||
| 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 | |
@@ -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 | |