@@ -133,9 +133,9 @@ discard block |
||
133 | 133 | |
134 | 134 | public function dispatch() { |
135 | 135 | |
136 | - $this->events->emit( new DispatcherEvent($this) ); |
|
136 | + $this->events->emit(new DispatcherEvent($this)); |
|
137 | 137 | |
138 | - if ( $this->configuration()->get('dispatcher-enabled') === false ) { |
|
138 | + if ($this->configuration()->get('dispatcher-enabled') === false) { |
|
139 | 139 | |
140 | 140 | $status = $this->configuration()->get('dispatcher-disabled-status'); |
141 | 141 | |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | |
150 | 150 | } |
151 | 151 | |
152 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request') ); |
|
152 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request')); |
|
153 | 153 | |
154 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get()) ); |
|
154 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get())); |
|
155 | 155 | |
156 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.#') ); |
|
156 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.#')); |
|
157 | 157 | |
158 | 158 | try { |
159 | 159 | |
@@ -161,21 +161,21 @@ discard block |
||
161 | 161 | |
162 | 162 | } catch (DispatcherException $de) { |
163 | 163 | |
164 | - $this->response()->status()->set( $de->getStatus() ); |
|
164 | + $this->response()->status()->set($de->getStatus()); |
|
165 | 165 | |
166 | - $this->response()->content()->set( $de->getContent() ); |
|
166 | + $this->response()->content()->set($de->getContent()); |
|
167 | 167 | |
168 | 168 | return $this->shutdown(); |
169 | 169 | |
170 | 170 | } |
171 | 171 | |
172 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route') ); |
|
172 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route')); |
|
173 | 173 | |
174 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getType()) ); |
|
174 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getType())); |
|
175 | 175 | |
176 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getService()) ); |
|
176 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getService())); |
|
177 | 177 | |
178 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.#') ); |
|
178 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.#')); |
|
179 | 179 | |
180 | 180 | // translate route to service |
181 | 181 | |
@@ -185,9 +185,9 @@ discard block |
||
185 | 185 | |
186 | 186 | } catch (DispatcherException $de) { |
187 | 187 | |
188 | - $this->response()->status()->set( $de->getStatus() ); |
|
188 | + $this->response()->status()->set($de->getStatus()); |
|
189 | 189 | |
190 | - $this->response()->content()->set( $de->getContent() ); |
|
190 | + $this->response()->content()->set($de->getContent()); |
|
191 | 191 | |
192 | 192 | } |
193 | 193 | |
@@ -210,11 +210,11 @@ discard block |
||
210 | 210 | |
211 | 211 | private function shutdown() { |
212 | 212 | |
213 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response') ); |
|
213 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response')); |
|
214 | 214 | |
215 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get()) ); |
|
215 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get())); |
|
216 | 216 | |
217 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.#') ); |
|
217 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.#')); |
|
218 | 218 | |
219 | 219 | $return = Processor::parse($this->configuration, $this->logger, $this->response); |
220 | 220 |