@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public function subscribe(string $event, string $listener, callable $action, int $priority = 0) |
48 | 48 | { |
49 | 49 | $actionKey = $event . static::KEY_DELIMITER . $listener; |
50 | - if (! isset($this->subscriptions[$actionKey])) { |
|
50 | + if (!isset($this->subscriptions[$actionKey])) { |
|
51 | 51 | $priorityKey = $this->convertNumber($priority, ++$this->subscriptionId); |
52 | 52 | $this->events[$event][$priorityKey] = $actionKey; |
53 | 53 | $this->subscriptions[$actionKey] = $action; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | public function dispatch(string $event) |
87 | 87 | { |
88 | 88 | if (isset($this->events[$event])) { |
89 | - if (! $this->reverseOrder[$event]) { |
|
89 | + if (!$this->reverseOrder[$event]) { |
|
90 | 90 | $this->reverseOrder[$event] = krsort($this->events[$event], SORT_NUMERIC); |
91 | 91 | } |
92 | 92 | foreach ($this->events[$event] as $priorityKey => $actionKey) { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $notified = []; |
29 | 29 | if (isset($this->events[$event])) { |
30 | - if (! $this->reverseOrder[$event]) { |
|
30 | + if (!$this->reverseOrder[$event]) { |
|
31 | 31 | $this->reverseOrder[$event] = krsort($this->events[$event], SORT_NUMERIC); |
32 | 32 | } |
33 | 33 | foreach ($this->events[$event] as $priorityKey => $actionKey) { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @author Yuriy Davletshin <[email protected]> |