@@ -186,7 +186,7 @@ |
||
186 | 186 | /** |
187 | 187 | * Process the response for a single data source. |
188 | 188 | * |
189 | - * @param array $items The source items to process. |
|
189 | + * @param \stdClass[] $items The source items to process. |
|
190 | 190 | * |
191 | 191 | * @return string The rendered view. |
192 | 192 | * |
@@ -102,8 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | ${$source}['unknown']++; |
105 | - } |
|
106 | - else |
|
105 | + } else |
|
107 | 106 | { |
108 | 107 | if (!isset(${$source}[$item->$source])) |
109 | 108 | { |
@@ -215,8 +214,7 @@ discard block |
||
215 | 214 | } |
216 | 215 | |
217 | 216 | $data[$source]['unknown']++; |
218 | - } |
|
219 | - else |
|
217 | + } else |
|
220 | 218 | { |
221 | 219 | if (!isset($data[$source][$item->$source])) |
222 | 220 | { |
@@ -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])) |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | const APPROOT = __DIR__; |
4 | 4 | |
5 | -$composerPath = APPROOT . '/vendor/autoload.php'; |
|
5 | +$composerPath = APPROOT.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | if (!file_exists($composerPath)) |
8 | 8 | { |
9 | 9 | throw new RuntimeException('Composer is not set up, please run "composer install".'); |
10 | 10 | } |
11 | 11 | |
12 | -require APPROOT . '/vendor/autoload.php'; |
|
12 | +require APPROOT.'/vendor/autoload.php'; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $container->alias('cache', CacheInterface::class) |
29 | 29 | ->share( |
30 | 30 | CacheInterface::class, |
31 | - function (Container $container) |
|
31 | + function(Container $container) |
|
32 | 32 | { |
33 | 33 | /** @var \Joomla\Registry\Registry $config */ |
34 | 34 | $config = $container->get('config'); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | // If the path is relative, make it absolute |
61 | 61 | if (substr($path, 0, 1) !== '/') |
62 | 62 | { |
63 | - $path = APPROOT . '/' . $path; |
|
63 | + $path = APPROOT.'/'.$path; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | $handler = new Cache\FilesystemCache($path); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | // If the path is relative, make it absolute |
80 | 80 | if (substr($path, 0, 1) !== '/') |
81 | 81 | { |
82 | - $path = APPROOT . '/' . $path; |
|
82 | + $path = APPROOT.'/'.$path; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | $handler = new Cache\PhpFileCache($path); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | protected function fetchController($name) |
30 | 30 | { |
31 | 31 | // Derive the controller class name. |
32 | - $class = $this->controllerPrefix . ucfirst($name); |
|
32 | + $class = $this->controllerPrefix.ucfirst($name); |
|
33 | 33 | |
34 | 34 | // If the controller class does not exist panic. |
35 | 35 | if (!class_exists($class)) |
@@ -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>'); |