@@ -34,12 +34,12 @@ discard block |
||
34 | 34 | |
35 | 35 | $this->resultCollector = $resultCollector; |
36 | 36 | |
37 | - $this->listNodeProcessor[UseUse::class] = static function (Node $node) use ($eventDispatcher) { |
|
37 | + $this->listNodeProcessor[UseUse::class] = static function(Node $node) use ($eventDispatcher) { |
|
38 | 38 | /** @var UseUse $node */ |
39 | 39 | return $eventDispatcher->dispatch(new FoundUseNamespace($node->getStartLine(), $node->name->toCodeString())); |
40 | 40 | }; |
41 | 41 | |
42 | - $this->listNodeProcessor[FullyQualified::class] = static function (Node $node) use ($eventDispatcher) { |
|
42 | + $this->listNodeProcessor[FullyQualified::class] = static function(Node $node) use ($eventDispatcher) { |
|
43 | 43 | /** @var FullyQualified $node */ |
44 | 44 | return $eventDispatcher->dispatch(new FoundUseNamespace($node->getStartLine(), $node->toCodeString())); |
45 | 45 | }; |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | |
68 | 68 | $additionalInformation = ''; |
69 | 69 | if ($resultProcessNode->getAdditionalInformation() !== '') { |
70 | - $additionalInformation='( '.$resultProcessNode->getAdditionalInformation().' )'; |
|
70 | + $additionalInformation = '( ' . $resultProcessNode->getAdditionalInformation() . ' )'; |
|
71 | 71 | } |
72 | 72 | |
73 | - $val = new Entry($resultProcessNode->getNodeName().$additionalInformation); |
|
73 | + $val = new Entry($resultProcessNode->getNodeName() . $additionalInformation); |
|
74 | 74 | $this->pushError($val, $node); |
75 | 75 | return; |
76 | 76 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | return $this->nodeName; |
33 | 33 | } |
34 | 34 | |
35 | - public function foundError(string $addtionalInformation=''): void |
|
35 | + public function foundError(string $addtionalInformation = ''): void |
|
36 | 36 | { |
37 | 37 | $this->additionalInformation = $addtionalInformation; |
38 | 38 | $this->erroDetect = true; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | interface EventProcessNodeInterface extends EventInterface |
8 | 8 | { |
9 | - public function foundError(string $additionalInfo=''): void; |
|
9 | + public function foundError(string $additionalInfo = ''): void; |
|
10 | 10 | |
11 | 11 | public function withError(): bool; |
12 | 12 |
@@ -113,7 +113,7 @@ |
||
113 | 113 | { |
114 | 114 | $prettyPrintNamespaceToValidate = "\n"; |
115 | 115 | foreach ($entries as $namespace) { |
116 | - $prettyPrintNamespaceToValidate .= '| >' . $namespace.\PHP_EOL; |
|
116 | + $prettyPrintNamespaceToValidate .= '| >' . $namespace . \PHP_EOL; |
|
117 | 117 | } |
118 | 118 | return $prettyPrintNamespaceToValidate; |
119 | 119 | } |