@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $code = $route->getRedirectCode(); |
| 37 | 37 | |
| 38 | 38 | $location = $route->getRedirectLocation(); |
| 39 | - $uri = empty($location) ? (string) $request->getUri() : $location; |
|
| 39 | + $uri = empty($location) ? (string)$request->getUri() : $location; |
|
| 40 | 40 | |
| 41 | 41 | $message = $route->getRedirectMessage(); |
| 42 | 42 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | if ( !empty($code) ) { |
| 56 | 56 | $status->set($code); |
| 57 | 57 | } else if ( $request->getVersion() === 'HTTP/1.1' ) { |
| 58 | - $status->set( (string) $request->getMethod() !== 'GET' ? 303 : 307); |
|
| 58 | + $status->set((string)$request->getMethod() !== 'GET' ? 303 : 307); |
|
| 59 | 59 | } else { |
| 60 | 60 | $status->set(302); |
| 61 | 61 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $events->emit(new DispatcherEvent($this)); |
| 127 | 127 | |
| 128 | 128 | // if dispatcher is administratively disabled, halt the process immediately |
| 129 | - if ($configuration->get('enabled') === false) { |
|
| 129 | + if ( $configuration->get('enabled') === false ) { |
|
| 130 | 130 | |
| 131 | 131 | $logger->debug("Dispatcher disabled, shutting down gracefully."); |
| 132 | 132 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | |
| 182 | 182 | $events->emit($this->createServiceSpecializedEvents('dispatcher.route.#')); |
| 183 | 183 | |
| 184 | - if ($cache->read($this->request, $this->response)) { |
|
| 184 | + if ( $cache->read($this->request, $this->response) ) { |
|
| 185 | 185 | // we have a cache! |
| 186 | 186 | // shutdown immediately |
| 187 | 187 | return $this->shutdown(); |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | try { |
| 191 | 191 | |
| 192 | - switch ($route_type) { |
|
| 192 | + switch ( $route_type ) { |
|
| 193 | 193 | |
| 194 | 194 | case 'ROUTE': |
| 195 | 195 | |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $params = $route->getParameter('headers'); |
| 242 | 242 | |
| 243 | 243 | if ( !empty($params) && is_array($params) ) { |
| 244 | - foreach($params as $name => $value) { |
|
| 244 | + foreach ( $params as $name => $value ) { |
|
| 245 | 245 | $this->getResponse()->getHeaders()->set($name, $value); |
| 246 | 246 | } |
| 247 | 247 | } |