@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function __construct(StatsJsonView $view) |
| 35 | 35 | { |
| 36 | - $this->view = $view; |
|
| 36 | + $this->view = $view; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | // We want the full raw data set for our snapshot |
| 51 | 51 | $this->view->isAuthorizedRaw(true); |
| 52 | 52 | |
| 53 | - $file = APPROOT . '/snapshots/' . date('YmdHis'); |
|
| 53 | + $file = APPROOT.'/snapshots/'.date('YmdHis'); |
|
| 54 | 54 | |
| 55 | 55 | if (!file_put_contents($file, $this->view->render())) |
| 56 | 56 | { |
| 57 | - throw new \RuntimeException('Failed writing snapshot to the filesystem at ' . $file); |
|
| 57 | + throw new \RuntimeException('Failed writing snapshot to the filesystem at '.$file); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | $this->getApplication()->out('<info>Snapshot successfully recorded.</info>'); |
@@ -263,7 +263,7 @@ |
||
| 263 | 263 | foreach ($dataGroup as $row) |
| 264 | 264 | { |
| 265 | 265 | $exploded = explode('.', $row['name']); |
| 266 | - $version = $exploded[0] . '.' . (isset($exploded[1]) ? $exploded[1] : '0'); |
|
| 266 | + $version = $exploded[0].'.'.(isset($exploded[1]) ? $exploded[1] : '0'); |
|
| 267 | 267 | |
| 268 | 268 | // If the container does not exist, add it |
| 269 | 269 | if (!isset($counts[$version])) |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $container->alias('db', DatabaseDriver::class) |
| 28 | 28 | ->share( |
| 29 | 29 | DatabaseDriver::class, |
| 30 | - function (Container $container) |
|
| 30 | + function(Container $container) |
|
| 31 | 31 | { |
| 32 | 32 | $config = $container->get('config'); |
| 33 | 33 | |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | // Import the valid release listing |
| 158 | - $path = APPROOT . '/versions/joomla.json'; |
|
| 158 | + $path = APPROOT.'/versions/joomla.json'; |
|
| 159 | 159 | |
| 160 | 160 | if (!file_exists($path)) |
| 161 | 161 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function __get($name) |
| 27 | 27 | { |
| 28 | - $class = __NAMESPACE__ . '\\Package\\' . ucfirst($name); |
|
| 28 | + $class = __NAMESPACE__.'\\Package\\'.ucfirst($name); |
|
| 29 | 29 | |
| 30 | 30 | if (class_exists($class)) |
| 31 | 31 | { |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function __get($name) |
| 25 | 25 | { |
| 26 | - $class = __NAMESPACE__ . '\\' . $this->package . '\\' . ucfirst($name); |
|
| 26 | + $class = __NAMESPACE__.'\\'.$this->package.'\\'.ucfirst($name); |
|
| 27 | 27 | |
| 28 | 28 | if (class_exists($class)) |
| 29 | 29 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | public function getTags($owner, $repo, $page = 0) |
| 50 | 50 | { |
| 51 | 51 | // Build the request path. |
| 52 | - $path = '/repos/' . $owner . '/' . $repo . '/tags'; |
|
| 52 | + $path = '/repos/'.$owner.'/'.$repo.'/tags'; |
|
| 53 | 53 | |
| 54 | 54 | // Send the request. |
| 55 | 55 | $this->apiResponse = $this->client->get($this->fetchUrl($path, $page)); |
@@ -61,8 +61,7 @@ discard block |
||
| 61 | 61 | try |
| 62 | 62 | { |
| 63 | 63 | $this->analytics->sendPageview(); |
| 64 | - } |
|
| 65 | - catch (\Exception $e) |
|
| 64 | + } catch (\Exception $e) |
|
| 66 | 65 | { |
| 67 | 66 | // Log the error for reference |
| 68 | 67 | $this->getLogger()->error( |
@@ -75,8 +74,7 @@ discard block |
||
| 75 | 74 | try |
| 76 | 75 | { |
| 77 | 76 | $this->router->getController($this->get('uri.route'))->execute(); |
| 78 | - } |
|
| 79 | - catch (\Exception $e) |
|
| 77 | + } catch (\Exception $e) |
|
| 80 | 78 | { |
| 81 | 79 | // Log the error for reference |
| 82 | 80 | $this->getLogger()->error( |
@@ -56,11 +56,11 @@ |
||
| 56 | 56 | else |
| 57 | 57 | { |
| 58 | 58 | $this->getApplication()->out( |
| 59 | - '<comment>' . sprintf('Your database is not up-to-date. You are missing %d migrations.', $status['missingMigrations']) . '</comment>' |
|
| 59 | + '<comment>'.sprintf('Your database is not up-to-date. You are missing %d migrations.', $status['missingMigrations']).'</comment>' |
|
| 60 | 60 | ) |
| 61 | 61 | ->out() |
| 62 | - ->out('<comment>' . sprintf('Current Version: %1$s', $status['currentVersion']) . '</comment>') |
|
| 63 | - ->out('<comment>' . sprintf('Latest Version: %1$s', $status['latestVersion']) . '</comment>') |
|
| 62 | + ->out('<comment>'.sprintf('Current Version: %1$s', $status['currentVersion']).'</comment>') |
|
| 63 | + ->out('<comment>'.sprintf('Latest Version: %1$s', $status['latestVersion']).'</comment>') |
|
| 64 | 64 | ->out() |
| 65 | 65 | ->out(sprintf('To update, run the <fg=magenta>%1$s</fg=magenta> command.', 'database:migrate')); |
| 66 | 66 | } |
@@ -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 | } |