@@ -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 | }; |
@@ -11,7 +11,7 @@ |
||
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 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @var callable listener |
23 | - */ |
|
23 | + */ |
|
24 | 24 | foreach ($this->listenerProvider->getListenersForEvent($event) as $listener) { |
25 | 25 | // if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { |
26 | 26 | // break; |
@@ -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); |