@@ -29,7 +29,7 @@ |
||
29 | 29 | private function stopWatch(float $script_start): float |
30 | 30 | { |
31 | 31 | list($usec, $sec) = explode(' ', microtime()); |
32 | - $script_end = (float) $sec + (float) $usec; |
|
32 | + $script_end = (float)$sec + (float)$usec; |
|
33 | 33 | |
34 | 34 | return round($script_end - $script_start, 5); |
35 | 35 | } |
@@ -46,8 +46,8 @@ |
||
46 | 46 | |
47 | 47 | public function load(): void |
48 | 48 | { |
49 | - $fetchValue = function ($key, $value) {return $value; }; |
|
50 | - $fetchKey = function ($key, $value) {return $key; }; |
|
49 | + $fetchValue = function($key, $value) {return $value; }; |
|
50 | + $fetchKey = function($key, $value) {return $key; }; |
|
51 | 51 | |
52 | 52 | $this->collectBaseFunctions = $this->fillFromArray(\get_defined_functions()['internal'], $fetchValue); |
53 | 53 | $this->collectBaseInterfaces = $this->fillFromArray(\get_declared_interfaces(), $fetchValue); |
@@ -11,8 +11,8 @@ |
||
11 | 11 | interface NamespaceProtectorVisitorInterface extends NodeVisitor |
12 | 12 | { |
13 | 13 | /** |
14 | - * @return ResultCollectedReadable<ErrorResult> |
|
15 | - */ |
|
14 | + * @return ResultCollectedReadable<ErrorResult> |
|
15 | + */ |
|
16 | 16 | public function getStoreProcessedResult(): ResultCollectedReadable; |
17 | 17 | |
18 | 18 | public function clearStoredProcessedResult(): void; |
@@ -37,12 +37,12 @@ |
||
37 | 37 | |
38 | 38 | private function configure(EventDispatcherInterface $eventDispatcher): void |
39 | 39 | { |
40 | - $this->listNodeProcessor[UseUse::class] = function (Node $node) use ($eventDispatcher) { |
|
40 | + $this->listNodeProcessor[UseUse::class] = function(Node $node) use ($eventDispatcher) { |
|
41 | 41 | /** @var UseUse $node */ |
42 | 42 | return $eventDispatcher->dispatch(new FoundUseNamespace($node->getStartLine(), $node->name->toCodeString())); |
43 | 43 | }; |
44 | 44 | |
45 | - $this->listNodeProcessor[FullyQualified::class] = function (Node $node) use ($eventDispatcher) { |
|
45 | + $this->listNodeProcessor[FullyQualified::class] = function(Node $node) use ($eventDispatcher) { |
|
46 | 46 | /** @var FullyQualified $node */ |
47 | 47 | return $eventDispatcher->dispatch(new FoundUseNamespace($node->getStartLine(), $node->toCodeString())); |
48 | 48 | }; |