@@ -69,7 +69,7 @@ |
||
69 | 69 | // If the path is relative, make it absolute... Sorry Windows users, this breaks support for your environment |
70 | 70 | if (substr($path, 0, 1) !== '/') |
71 | 71 | { |
72 | - $path = APPROOT . '/' . $path; |
|
72 | + $path = APPROOT.'/'.$path; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | $options = [ |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $level = strtoupper($config->get('log.application', $config->get('log.level', 'error'))); |
95 | 95 | |
96 | - return new StreamHandler(APPROOT . '/logs/stats.log', constant('\\Monolog\\Logger::' . $level)); |
|
96 | + return new StreamHandler(APPROOT.'/logs/stats.log', constant('\\Monolog\\Logger::'.$level)); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | // If database debugging is enabled then force the logger's error level to DEBUG, otherwise use the level defined in the app config |
114 | 114 | $level = $config->get('database.debug', false) ? 'DEBUG' : strtoupper($config->get('log.database', $config->get('log.level', 'error'))); |
115 | 115 | |
116 | - return new StreamHandler(APPROOT . '/logs/stats.log', constant('\\Monolog\\Logger::' . $level)); |
|
116 | + return new StreamHandler(APPROOT.'/logs/stats.log', constant('\\Monolog\\Logger::'.$level)); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -39,8 +39,7 @@ |
||
39 | 39 | try |
40 | 40 | { |
41 | 41 | $container->get(WebApplication::class)->execute(); |
42 | -} |
|
43 | -catch (\Throwable $e) |
|
42 | +} catch (\Throwable $e) |
|
44 | 43 | { |
45 | 44 | if (!headers_sent()) |
46 | 45 | { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require dirname(__DIR__) . '/boot.php'; |
|
3 | +require dirname(__DIR__).'/boot.php'; |
|
4 | 4 | |
5 | 5 | use Joomla\Application\AbstractApplication; |
6 | 6 | use Joomla\Application\AbstractWebApplication; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $container = (new Container) |
20 | 20 | ->registerServiceProvider(new ApplicationServiceProvider) |
21 | 21 | ->registerServiceProvider(new CacheServiceProvider) |
22 | - ->registerServiceProvider(new ConfigServiceProvider(APPROOT . '/etc/config.json')) |
|
22 | + ->registerServiceProvider(new ConfigServiceProvider(APPROOT.'/etc/config.json')) |
|
23 | 23 | ->registerServiceProvider(new DatabaseServiceProvider) |
24 | 24 | ->registerServiceProvider(new GitHubServiceProvider) |
25 | 25 | ->registerServiceProvider(new MonologServiceProvider); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | $response = [ |
56 | 56 | 'error' => true, |
57 | - 'message' => 'An error occurred while executing the application: ' . $e->getMessage() |
|
57 | + 'message' => 'An error occurred while executing the application: '.$e->getMessage() |
|
58 | 58 | ]; |
59 | 59 | |
60 | 60 | echo json_encode($response); |
@@ -63,8 +63,7 @@ discard block |
||
63 | 63 | try |
64 | 64 | { |
65 | 65 | $this->analytics->sendPageview(); |
66 | - } |
|
67 | - catch (\Exception $e) |
|
66 | + } catch (\Exception $e) |
|
68 | 67 | { |
69 | 68 | // Log the error for reference |
70 | 69 | $this->getLogger()->error( |
@@ -77,8 +76,7 @@ discard block |
||
77 | 76 | try |
78 | 77 | { |
79 | 78 | $this->router->getController($this->get('uri.route'))->execute(); |
80 | - } |
|
81 | - catch (\Throwable $e) |
|
79 | + } catch (\Throwable $e) |
|
82 | 80 | { |
83 | 81 | // Log the error for reference |
84 | 82 | $this->getLogger()->error( |
@@ -161,7 +161,7 @@ |
||
161 | 161 | */ |
162 | 162 | private function doMigration(string $version) |
163 | 163 | { |
164 | - $sqlFile = 'migrations/' . $version . '.sql'; |
|
164 | + $sqlFile = 'migrations/'.$version.'.sql'; |
|
165 | 165 | |
166 | 166 | if (!$this->filesystem->has($sqlFile)) |
167 | 167 | { |