@@ -48,11 +48,11 @@ |
||
| 48 | 48 | |
| 49 | 49 | foreach ($this->getApplication()->getConsole()->getCommands() as $cName => $command) |
| 50 | 50 | { |
| 51 | - $this->getApplication()->out('<cmd>' . $cName . '</cmd>'); |
|
| 51 | + $this->getApplication()->out('<cmd>'.$cName.'</cmd>'); |
|
| 52 | 52 | |
| 53 | 53 | if ($command->getDescription()) |
| 54 | 54 | { |
| 55 | - $this->getApplication()->out(' ' . $command->getDescription()); |
|
| 55 | + $this->getApplication()->out(' '.$command->getDescription()); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | $this->getApplication()->out(); |
@@ -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>'); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $commands = []; |
| 56 | 56 | |
| 57 | 57 | /** @var \DirectoryIterator $fileInfo */ |
| 58 | - foreach (new \DirectoryIterator(__DIR__ . '/Commands') as $fileInfo) |
|
| 58 | + foreach (new \DirectoryIterator(__DIR__.'/Commands') as $fileInfo) |
|
| 59 | 59 | { |
| 60 | 60 | if ($fileInfo->isDot() || !$fileInfo->isFile()) |
| 61 | 61 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | $command = $fileInfo->getBasename('.php'); |
| 66 | - $className = __NAMESPACE__ . "\\Commands\\$command"; |
|
| 66 | + $className = __NAMESPACE__."\\Commands\\$command"; |
|
| 67 | 67 | |
| 68 | 68 | if (false == class_exists($className)) |
| 69 | 69 | { |
@@ -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])) |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | return $db->setQuery( |
| 42 | 42 | $query |
| 43 | 43 | ->select('*') |
| 44 | - ->from($db->quoteName('#__jstats_counter_' . $column)) |
|
| 44 | + ->from($db->quoteName('#__jstats_counter_'.$column)) |
|
| 45 | 45 | )->loadAssocList(); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $return[$column] = $db->setQuery( |
| 60 | 60 | $query->clear() |
| 61 | 61 | ->select('*') |
| 62 | - ->from($db->quoteName('#__jstats_counter_' . $column)) |
|
| 62 | + ->from($db->quoteName('#__jstats_counter_'.$column)) |
|
| 63 | 63 | )->loadAssocList(); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $db->getQuery(true) |
| 88 | 88 | ->select('unique_id') |
| 89 | 89 | ->from('#__jstats') |
| 90 | - ->where('unique_id = ' . $db->quote($data->unique_id)) |
|
| 90 | + ->where('unique_id = '.$db->quote($data->unique_id)) |
|
| 91 | 91 | )->loadResult(); |
| 92 | 92 | |
| 93 | 93 | if ($recordExists) |