@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @return EventInterface |
81 | 81 | */ |
82 | 82 | public function dispatch( |
83 | - string|EventInterface $eventName, |
|
83 | + string | EventInterface $eventName, |
|
84 | 84 | ?EventInterface $event = null |
85 | 85 | ): EventInterface; |
86 | 86 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function addListener( |
97 | 97 | string $eventName, |
98 | - ListenerInterface|callable $listener, |
|
98 | + ListenerInterface | callable $listener, |
|
99 | 99 | int $priority = self::PRIORITY_DEFAULT |
100 | 100 | ): void; |
101 | 101 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function removeListener( |
118 | 118 | string $eventName, |
119 | - ListenerInterface|callable $listener |
|
119 | + ListenerInterface | callable $listener |
|
120 | 120 | ): void; |
121 | 121 | |
122 | 122 | /** |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @return bool |
145 | 145 | */ |
146 | - public function hasListener(string $eventName, ListenerInterface|callable $listener): bool; |
|
146 | + public function hasListener(string $eventName, ListenerInterface | callable $listener): bool; |
|
147 | 147 | |
148 | 148 | /** |
149 | 149 | * Get all listeners for the given event or all registered listeners. |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * {@inheritdoc} |
67 | 67 | */ |
68 | 68 | public function dispatch( |
69 | - string|EventInterface $eventName, |
|
69 | + string | EventInterface $eventName, |
|
70 | 70 | ?EventInterface $event = null |
71 | 71 | ): EventInterface { |
72 | 72 | if ($eventName instanceof EventInterface) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function addListener( |
95 | 95 | string $eventName, |
96 | - ListenerInterface|callable $listener, |
|
96 | + ListenerInterface | callable $listener, |
|
97 | 97 | int $priority = self::PRIORITY_DEFAULT |
98 | 98 | ): void { |
99 | 99 | if (!isset($this->listeners[$eventName])) { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * {@inheritdoc} |
122 | 122 | */ |
123 | - public function removeListener(string $eventName, ListenerInterface|callable $listener): void |
|
123 | + public function removeListener(string $eventName, ListenerInterface | callable $listener): void |
|
124 | 124 | { |
125 | 125 | if (empty($this->listeners[$eventName])) { |
126 | 126 | return; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * {@inheritdoc} |
166 | 166 | */ |
167 | - public function hasListener(string $eventName, ListenerInterface|callable $listener): bool |
|
167 | + public function hasListener(string $eventName, ListenerInterface | callable $listener): bool |
|
168 | 168 | { |
169 | 169 | if (!isset($this->listeners[$eventName])) { |
170 | 170 | return false; |