@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | */ |
177 | 177 | public function store(array $params, bool $reset = true) |
178 | 178 | { |
179 | - if ( !$this->_object_stored |
|
179 | + if (!$this->_object_stored |
|
180 | 180 | && $this->_object) { |
181 | 181 | $this->_store_from_object(); |
182 | 182 | } |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | */ |
266 | 266 | public function get_all() : array |
267 | 267 | { |
268 | - if ( !$this->_object_stored |
|
268 | + if (!$this->_object_stored |
|
269 | 269 | && $this->_object) { |
270 | 270 | $this->_store_from_object(); |
271 | 271 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | */ |
279 | 279 | public function exists(string $key) : bool |
280 | 280 | { |
281 | - if ( !$this->_object_stored |
|
281 | + if (!$this->_object_stored |
|
282 | 282 | && $this->_object) { |
283 | 283 | $this->_store_from_object(); |
284 | 284 | } |
@@ -161,7 +161,8 @@ discard block |
||
161 | 161 | $response = $this->handle($this->request); |
162 | 162 | $response->send(); |
163 | 163 | $this->terminate($this->request, $response); |
164 | - } catch (Error $e) { |
|
164 | + } |
|
165 | + catch (Error $e) { |
|
165 | 166 | $this->getHttpKernel()->terminateWithException($e); |
166 | 167 | } |
167 | 168 | } |
@@ -218,11 +219,13 @@ discard block |
||
218 | 219 | $this->skip_page_style = true; |
219 | 220 | try { |
220 | 221 | $response = $this->handle($request, HttpKernelInterface::SUB_REQUEST, false); |
221 | - } catch (midcom_error_notfound | midcom_error_forbidden $e) { |
|
222 | + } |
|
223 | + catch (midcom_error_notfound | midcom_error_forbidden $e) { |
|
222 | 224 | $e->log(); |
223 | 225 | midcom_core_context::leave(); |
224 | 226 | return; |
225 | - } finally { |
|
227 | + } |
|
228 | + finally { |
|
226 | 229 | $this->skip_page_style = $backup; |
227 | 230 | } |
228 | 231 |