@@ -125,12 +125,12 @@ |
||
| 125 | 125 | protected function printHead($response) |
| 126 | 126 | { |
| 127 | 127 | $head = '<HEAD><TITLE>'.$this->title.'</TITLE>'; |
| 128 | - $head.='<meta name="viewport" content="width=device-width, initial-scale=1.0">'; |
|
| 128 | + $head .= '<meta name="viewport" content="width=device-width, initial-scale=1.0">'; |
|
| 129 | 129 | foreach($this->headTags as $tag) |
| 130 | 130 | { |
| 131 | - $head.=$tag."\n"; |
|
| 131 | + $head .= $tag."\n"; |
|
| 132 | 132 | } |
| 133 | - $head.='</HEAD>'; |
|
| 133 | + $head .= '</HEAD>'; |
|
| 134 | 134 | return $response->write($head); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | parent::__construct(); |
| 14 | 14 | $c = $this->getContainer(); |
| 15 | - $c['errorHandler'] = function($c) { return new WebErrorHandler();}; |
|
| 15 | + $c['errorHandler'] = function($c) { return new WebErrorHandler(); }; |
|
| 16 | 16 | $this->add(new AuthMiddleware()); |
| 17 | 17 | $this->add(new ODataMiddleware()); |
| 18 | 18 | } |
@@ -24,6 +24,6 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | public function registerAPI($uri, $api) |
| 26 | 26 | { |
| 27 | - $this->group($uri, function() use($api) {$api->setup($this);})->add(new \Http\Rest\SerializationMiddleware()); |
|
| 27 | + $this->group($uri, function() use($api) {$api->setup($this); })->add(new \Http\Rest\SerializationMiddleware()); |
|
| 28 | 28 | } |
| 29 | 29 | } |