@@ -25,8 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | $app = $container->get(Application::class); |
27 | 27 | $app->execute(); |
28 | -} |
|
29 | -catch (\Exception $e) |
|
28 | +} catch (\Exception $e) |
|
30 | 29 | { |
31 | 30 | if (!headers_sent()) |
32 | 31 | { |
@@ -72,15 +72,13 @@ |
||
72 | 72 | if ($this->cache->contains($key)) |
73 | 73 | { |
74 | 74 | $body = $this->cache->fetch($key); |
75 | - } |
|
76 | - else |
|
75 | + } else |
|
77 | 76 | { |
78 | 77 | $body = $this->view->render(); |
79 | 78 | |
80 | 79 | $this->cache->save($key, $body, $this->getApplication()->get('cache.lifetime', 900)); |
81 | 80 | } |
82 | - } |
|
83 | - else |
|
81 | + } else |
|
84 | 82 | { |
85 | 83 | $body = $this->view->render(); |
86 | 84 | } |
@@ -40,8 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | $controller = $this->router->getController($this->get('uri.route')); |
42 | 42 | $controller->execute(); |
43 | - } |
|
44 | - catch (\Exception $e) |
|
43 | + } catch (\Exception $e) |
|
45 | 44 | { |
46 | 45 | // Log the error for reference |
47 | 46 | $this->getLogger()->error( |
@@ -102,8 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | ${$source}['unknown']++; |
105 | - } |
|
106 | - else |
|
105 | + } else |
|
107 | 106 | { |
108 | 107 | if (!isset(${$source}[$item->$source])) |
109 | 108 | { |
@@ -215,8 +214,7 @@ discard block |
||
215 | 214 | } |
216 | 215 | |
217 | 216 | $data[$source]['unknown']++; |
218 | - } |
|
219 | - else |
|
217 | + } else |
|
220 | 218 | { |
221 | 219 | if (!isset($data[$source][$item->$source])) |
222 | 220 | { |
@@ -72,15 +72,13 @@ |
||
72 | 72 | if ($this->cache->contains($key)) |
73 | 73 | { |
74 | 74 | $body = $this->cache->fetch($key); |
75 | - } |
|
76 | - else |
|
75 | + } else |
|
77 | 76 | { |
78 | 77 | $body = $this->view->render(); |
79 | 78 | |
80 | 79 | $this->cache->save($key, $body, $this->getApplication()->get('cache.lifetime', 900)); |
81 | 80 | } |
82 | - } |
|
83 | - else |
|
81 | + } else |
|
84 | 82 | { |
85 | 83 | $body = $this->view->render(); |
86 | 84 | } |