@@ -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 | } |
@@ -44,12 +44,12 @@ |
||
44 | 44 | |
45 | 45 | private function configure(EventDispatcherInterface $eventDispatcher): void |
46 | 46 | { |
47 | - $this->listNodeProcessor[UseUse::class] = function (Node $node) use ($eventDispatcher): object { |
|
47 | + $this->listNodeProcessor[UseUse::class] = function(Node $node) use ($eventDispatcher): object { |
|
48 | 48 | /** @var UseUse $node */ |
49 | 49 | return $eventDispatcher->dispatch(new FoundUseNamespace($node->getStartLine(), $node->name->toCodeString())); |
50 | 50 | }; |
51 | 51 | |
52 | - $this->listNodeProcessor[FullyQualified::class] = function (Node $node) use ($eventDispatcher): object { |
|
52 | + $this->listNodeProcessor[FullyQualified::class] = function(Node $node) use ($eventDispatcher): object { |
|
53 | 53 | /** @var FullyQualified $node */ |
54 | 54 | return $eventDispatcher->dispatch(new FoundUseNamespace($node->getStartLine(), $node->toCodeString())); |
55 | 55 | }; |
@@ -53,9 +53,9 @@ |
||
53 | 53 | public function load(): void |
54 | 54 | { |
55 | 55 | /** @var string|int $value */ |
56 | - $fetchValue = function ($key, $value): string {return (string)$value; }; |
|
56 | + $fetchValue = function($key, $value): string {return (string)$value; }; |
|
57 | 57 | |
58 | - $fetchKey = function ($key, $value): string {return (string)$key; }; |
|
58 | + $fetchKey = function($key, $value): string {return (string)$key; }; |
|
59 | 59 | |
60 | 60 | $this->collectBaseFunctions = $this->fillFromArray(\get_defined_functions()['internal'], $fetchValue); |
61 | 61 | $this->collectBaseInterfaces = $this->fillFromArray(\get_declared_interfaces(), $fetchValue); |