@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $query = $this->params()->fromQuery(); |
| 48 | 48 | |
| 49 | - switch($this->plugin){ |
|
| 49 | + switch ($this->plugin) { |
|
| 50 | 50 | case 'photon': |
| 51 | 51 | /* @var Plugin\Photon $geoApi */ |
| 52 | 52 | $geoApi = $this->getPluginManager()->get('geo/photon'); |
@@ -60,19 +60,19 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | $result = array(); |
| 62 | 62 | if (!empty($query['q'])) { |
| 63 | - $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de')); |
|
| 63 | + $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de')); |
|
| 64 | 64 | } |
| 65 | 65 | $viewModel = new JsonModel($result); |
| 66 | 66 | /* @var \Zend\Http\Response $response */ |
| 67 | 67 | $response = $this->getResponse(); |
| 68 | 68 | |
| 69 | 69 | $date = new \DateTime(); |
| 70 | - $expires=$date->modify('+100 day'); |
|
| 70 | + $expires = $date->modify('+100 day'); |
|
| 71 | 71 | |
| 72 | 72 | $response->getHeaders() |
| 73 | - ->addHeaderLine('Pragma','cache') |
|
| 74 | - ->addHeaderLine('Cache-Control',"max-age=290304000, public") |
|
| 75 | - ->addHeaderLine('Expires',$expires->format(\DateTime::RFC1036)); |
|
| 73 | + ->addHeaderLine('Pragma', 'cache') |
|
| 74 | + ->addHeaderLine('Cache-Control', "max-age=290304000, public") |
|
| 75 | + ->addHeaderLine('Expires', $expires->format(\DateTime::RFC1036)); |
|
| 76 | 76 | |
| 77 | 77 | return $viewModel; |
| 78 | 78 | } |