@@ -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 | { |
@@ -57,8 +57,7 @@ |
||
57 | 57 | if ($recordExists) |
58 | 58 | { |
59 | 59 | $db->updateObject('#__jstats', $data, ['unique_id']); |
60 | - } |
|
61 | - else |
|
60 | + } else |
|
62 | 61 | { |
63 | 62 | $db->insertObject('#__jstats', $data, ['unique_id']); |
64 | 63 | } |
@@ -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( |
@@ -79,8 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | $data[$key]['unknown']++; |
82 | - } |
|
83 | - else |
|
82 | + } else |
|
84 | 83 | { |
85 | 84 | if (!isset($data[$key][$item->$key])) |
86 | 85 | { |