@@ -87,20 +87,20 @@ |
||
| 87 | 87 | |
| 88 | 88 | // Allow the next patch release after this one |
| 89 | 89 | $nextPatch = $explodedVersion[2] + 1; |
| 90 | - $versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch; |
|
| 90 | + $versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch; |
|
| 91 | 91 | |
| 92 | 92 | // And allow the next minor release after this one |
| 93 | 93 | $nextMinor = $explodedVersion[1] + 1; |
| 94 | - $versions[] = $explodedVersion[0] . '.' . $nextMinor . '.0'; |
|
| 94 | + $versions[] = $explodedVersion[0].'.'.$nextMinor.'.0'; |
|
| 95 | 95 | |
| 96 | 96 | // And allow the next major release after this one |
| 97 | 97 | // TODO - Remove this once there is a 4.0 tag |
| 98 | 98 | $nextMajor = $explodedVersion[0] + 1; |
| 99 | - $versions[] = $nextMajor . '.0.0'; |
|
| 99 | + $versions[] = $nextMajor.'.0.0'; |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | // Store the version data now |
| 103 | - $path = APPROOT . '/versions/joomla.json'; |
|
| 103 | + $path = APPROOT.'/versions/joomla.json'; |
|
| 104 | 104 | |
| 105 | 105 | if (file_put_contents($path, json_encode($versions)) === false) |
| 106 | 106 | { |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | { |
| 69 | 69 | return new Migrations( |
| 70 | 70 | $container->get('db'), |
| 71 | - new Filesystem(new Local(APPROOT . '/etc')) |
|
| 71 | + new Filesystem(new Local(APPROOT.'/etc')) |
|
| 72 | 72 | ); |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -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 | /** |
@@ -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( |