@@ -41,11 +41,11 @@ discard block |
||
| 41 | 41 | Response $response |
| 42 | 42 | ) { |
| 43 | 43 | |
| 44 | - $name = md5( (string) $request->method . (string) $request->uri ); |
|
| 44 | + $name = md5((string)$request->method.(string)$request->uri); |
|
| 45 | 45 | |
| 46 | 46 | $cache_object = $this->cache->setNamespace('dispatcherservice')->get($name); |
| 47 | 47 | |
| 48 | - if ( is_null($cache_object) ) return false; |
|
| 48 | + if (is_null($cache_object)) return false; |
|
| 49 | 49 | |
| 50 | 50 | $response->import($cache_object); |
| 51 | 51 | |
@@ -63,17 +63,17 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | $ttl = $route->getParameter('ttl'); |
| 65 | 65 | |
| 66 | - $name = md5( (string) $request->method . (string) $request->uri ); |
|
| 66 | + $name = md5((string)$request->method.(string)$request->uri); |
|
| 67 | 67 | |
| 68 | 68 | $method = $request->method->get(); |
| 69 | 69 | |
| 70 | 70 | $status = $response->status->get(); |
| 71 | 71 | |
| 72 | 72 | if ( |
| 73 | - ( $cache == 'SERVER' || $cache == 'BOTH' ) && |
|
| 73 | + ($cache == 'SERVER' || $cache == 'BOTH') && |
|
| 74 | 74 | in_array($method, self::$cachable_methods) && |
| 75 | 75 | in_array($status, self::$cachable_statuses) |
| 76 | - ){ |
|
| 76 | + ) { |
|
| 77 | 77 | |
| 78 | 78 | $this->cache |
| 79 | 79 | ->setNamespace('dispatcherservice') |