Completed
Push — master ( 25b4ef...196b74 )
by Michael
06:01
created
src/Providers/ConfigServiceProvider.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	/**
47 47
 	 * Registers the service provider with a DI container.
48 48
 	 *
49
-	 * @param   Container  $container  The DI container.
49
+	 * @param   \Joomla\DI\Container  $container  The DI container.
50 50
 	 *
51 51
 	 * @return  void
52 52
 	 */
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	/**
59 59
 	 * Get the `config` service
60 60
 	 *
61
-	 * @param   Container  $container  The DI container.
61
+	 * @param   \Joomla\DI\Container  $container  The DI container.
62 62
 	 *
63 63
 	 * @return  Registry
64 64
 	 */
Please login to merge, or discard this patch.
src/Providers/ApplicationServiceProvider.php 1 patch
Doc Comments   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	/**
39 39
 	 * Registers the service provider with a DI container.
40 40
 	 *
41
-	 * @param   Container  $container  The DI container.
41
+	 * @param   \Joomla\DI\Container  $container  The DI container.
42 42
 	 *
43 43
 	 * @return  void
44 44
 	 */
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	/**
104 104
 	 * Get the Analytics class service
105 105
 	 *
106
-	 * @param   Container  $container  The DI container.
106
+	 * @param   \Joomla\DI\Container  $container  The DI container.
107 107
 	 *
108 108
 	 * @return  Analytics
109 109
 	 */
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
 	/**
116 116
 	 * Get the CLI application service
117 117
 	 *
118
-	 * @param   Container  $container  The DI container.
118
+	 * @param   \Joomla\DI\Container  $container  The DI container.
119 119
 	 *
120
-	 * @return  CliApplication
120
+	 * @return  \Joomla\StatsServer\CliApplication
121 121
 	 */
122 122
 	public function getCliApplicationService(Container $container) : CliApplication
123 123
 	{
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	/**
139 139
 	 * Get the CliInput class service
140 140
 	 *
141
-	 * @param   Container  $container  The DI container.
141
+	 * @param   \Joomla\DI\Container  $container  The DI container.
142 142
 	 *
143 143
 	 * @return  JoomlaApplication\Cli\CliInput
144 144
 	 */
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	/**
151 151
 	 * Get the CliOutput class service
152 152
 	 *
153
-	 * @param   Container  $container  The DI container.
153
+	 * @param   \Joomla\DI\Container  $container  The DI container.
154 154
 	 *
155 155
 	 * @return  JoomlaApplication\Cli\CliOutput
156 156
 	 */
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	/**
163 163
 	 * Get the ColorProcessor class service
164 164
 	 *
165
-	 * @param   Container  $container  The DI container.
165
+	 * @param   \Joomla\DI\Container  $container  The DI container.
166 166
 	 *
167 167
 	 * @return  JoomlaApplication\Cli\Output\Processor\ColorProcessor
168 168
 	 */
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
 	/**
188 188
 	 * Get the console service
189 189
 	 *
190
-	 * @param   Container  $container  The DI container.
190
+	 * @param   \Joomla\DI\Container  $container  The DI container.
191 191
 	 *
192
-	 * @return  Console
192
+	 * @return  \Joomla\StatsServer\Console
193 193
 	 */
194 194
 	public function getConsoleService(Container $container) : Console
195 195
 	{
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	/**
203 203
 	 * Get the Database\MigrateCommand class service
204 204
 	 *
205
-	 * @param   Container  $container  The DI container.
205
+	 * @param   \Joomla\DI\Container  $container  The DI container.
206 206
 	 *
207 207
 	 * @return  AppCommands\Database\MigrateCommand
208 208
 	 */
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 	/**
221 221
 	 * Get the Database\StatusCommand class service
222 222
 	 *
223
-	 * @param   Container  $container  The DI container.
223
+	 * @param   \Joomla\DI\Container  $container  The DI container.
224 224
 	 *
225 225
 	 * @return  AppCommands\Database\StatusCommand
226 226
 	 */
@@ -237,9 +237,9 @@  discard block
 block discarded – undo
237 237
 	/**
238 238
 	 * Get the DisplayControllerCreate class service
239 239
 	 *
240
-	 * @param   Container  $container  The DI container.
240
+	 * @param   \Joomla\DI\Container  $container  The DI container.
241 241
 	 *
242
-	 * @return  DisplayControllerCreate
242
+	 * @return  \Joomla\StatsServer\Controllers\DisplayControllerCreate
243 243
 	 */
244 244
 	public function getDisplayControllerCreateService(Container $container) : DisplayControllerCreate
245 245
 	{
@@ -254,9 +254,9 @@  discard block
 block discarded – undo
254 254
 	/**
255 255
 	 * Get the DisplayControllerGet class service
256 256
 	 *
257
-	 * @param   Container  $container  The DI container.
257
+	 * @param   \Joomla\DI\Container  $container  The DI container.
258 258
 	 *
259
-	 * @return  DisplayControllerGet
259
+	 * @return  \Joomla\StatsServer\Controllers\DisplayControllerGet
260 260
 	 */
261 261
 	public function getDisplayControllerGetService(Container $container) : DisplayControllerGet
262 262
 	{
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 	/**
274 274
 	 * Get the HelpCommand class service
275 275
 	 *
276
-	 * @param   Container  $container  The DI container.
276
+	 * @param   \Joomla\DI\Container  $container  The DI container.
277 277
 	 *
278 278
 	 * @return  AppCommands\HelpCommand
279 279
 	 */
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
 	/**
291 291
 	 * Get the Input\Cli class service
292 292
 	 *
293
-	 * @param   Container  $container  The DI container.
293
+	 * @param   \Joomla\DI\Container  $container  The DI container.
294 294
 	 *
295
-	 * @return  Cli
295
+	 * @return  \Joomla\Input\Cli
296 296
 	 */
297 297
 	public function getInputCliService(Container $container) : Cli
298 298
 	{
@@ -302,9 +302,9 @@  discard block
 block discarded – undo
302 302
 	/**
303 303
 	 * Get the Input class service
304 304
 	 *
305
-	 * @param   Container  $container  The DI container.
305
+	 * @param   \Joomla\DI\Container  $container  The DI container.
306 306
 	 *
307
-	 * @return  Input
307
+	 * @return  \Joomla\Input\Input
308 308
 	 */
309 309
 	public function getInputService(Container $container) : Input
310 310
 	{
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 	/**
315 315
 	 * Get the InstallCommand class service
316 316
 	 *
317
-	 * @param   Container  $container  The DI container.
317
+	 * @param   \Joomla\DI\Container  $container  The DI container.
318 318
 	 *
319 319
 	 * @return  AppCommands\InstallCommand
320 320
 	 */
@@ -331,9 +331,9 @@  discard block
 block discarded – undo
331 331
 	/**
332 332
 	 * Get the router service
333 333
 	 *
334
-	 * @param   Container  $container  The DI container.
334
+	 * @param   \Joomla\DI\Container  $container  The DI container.
335 335
 	 *
336
-	 * @return  Router
336
+	 * @return  \Joomla\StatsServer\Router
337 337
 	 */
338 338
 	public function getRouterService(Container $container) : Router
339 339
 	{
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
 	/**
352 352
 	 * Get the SnapshotCommand class service
353 353
 	 *
354
-	 * @param   Container  $container  The DI container.
354
+	 * @param   \Joomla\DI\Container  $container  The DI container.
355 355
 	 *
356 356
 	 * @return  AppCommands\SnapshotCommand
357 357
 	 */
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 	/**
369 369
 	 * Get the RecentCommand class service
370 370
 	 *
371
-	 * @param   Container  $container  The DI container.
371
+	 * @param   \Joomla\DI\Container  $container  The DI container.
372 372
 	 *
373 373
 	 * @return  AppCommands\Snapshot\RecentCommand
374 374
 	 */
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 	/**
386 386
 	 * Get the StatsJsonView class service
387 387
 	 *
388
-	 * @param   Container  $container  The DI container.
388
+	 * @param   \Joomla\DI\Container  $container  The DI container.
389 389
 	 *
390 390
 	 * @return  StatsJsonView
391 391
 	 */
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 	/**
400 400
 	 * Get the StatsModel class service
401 401
 	 *
402
-	 * @param   Container  $container  The DI container.
402
+	 * @param   \Joomla\DI\Container  $container  The DI container.
403 403
 	 *
404 404
 	 * @return  StatsModel
405 405
 	 */
@@ -413,9 +413,9 @@  discard block
 block discarded – undo
413 413
 	/**
414 414
 	 * Get the SubmitControllerCreate class service
415 415
 	 *
416
-	 * @param   Container  $container  The DI container.
416
+	 * @param   \Joomla\DI\Container  $container  The DI container.
417 417
 	 *
418
-	 * @return  SubmitControllerCreate
418
+	 * @return  \Joomla\StatsServer\Controllers\SubmitControllerCreate
419 419
 	 */
420 420
 	public function getSubmitControllerCreateService(Container $container) : SubmitControllerCreate
421 421
 	{
@@ -432,9 +432,9 @@  discard block
 block discarded – undo
432 432
 	/**
433 433
 	 * Get the SubmitControllerGet class service
434 434
 	 *
435
-	 * @param   Container  $container  The DI container.
435
+	 * @param   \Joomla\DI\Container  $container  The DI container.
436 436
 	 *
437
-	 * @return  SubmitControllerGet
437
+	 * @return  \Joomla\StatsServer\Controllers\SubmitControllerGet
438 438
 	 */
439 439
 	public function getSubmitControllerGetService(Container $container) : SubmitControllerGet
440 440
 	{
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 	/**
450 450
 	 * Get the Tags\JoomlaCommand class service
451 451
 	 *
452
-	 * @param   Container  $container  The DI container.
452
+	 * @param   \Joomla\DI\Container  $container  The DI container.
453 453
 	 *
454 454
 	 * @return  AppCommands\Tags\JoomlaCommand
455 455
 	 */
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 	/**
467 467
 	 * Get the Tags\PhpCommand class service
468 468
 	 *
469
-	 * @param   Container  $container  The DI container.
469
+	 * @param   \Joomla\DI\Container  $container  The DI container.
470 470
 	 *
471 471
 	 * @return  AppCommands\Tags\PhpCommand
472 472
 	 */
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 	/**
484 484
 	 * Get the UpdateCommand class service
485 485
 	 *
486
-	 * @param   Container  $container  The DI container.
486
+	 * @param   \Joomla\DI\Container  $container  The DI container.
487 487
 	 *
488 488
 	 * @return  AppCommands\UpdateCommand
489 489
 	 */
@@ -500,9 +500,9 @@  discard block
 block discarded – undo
500 500
 	/**
501 501
 	 * Get the web application service
502 502
 	 *
503
-	 * @param   Container  $container  The DI container.
503
+	 * @param   \Joomla\DI\Container  $container  The DI container.
504 504
 	 *
505
-	 * @return  WebApplication
505
+	 * @return  \Joomla\StatsServer\WebApplication
506 506
 	 */
507 507
 	public function getWebApplicationService(Container $container) : WebApplication
508 508
 	{
Please login to merge, or discard this patch.
src/Commands/Snapshot/RecentCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 */
35 35
 	public function __construct(StatsJsonView $view)
36 36
 	{
37
-		$this->view  = $view;
37
+		$this->view = $view;
38 38
 	}
39 39
 
40 40
 	/**
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 		$this->view->isAuthorizedRaw(true);
51 51
 		$this->view->isRecent(true);
52 52
 
53
-		$file = APPROOT . '/snapshots/' . date('YmdHis') . '_recent';
53
+		$file = APPROOT.'/snapshots/'.date('YmdHis').'_recent';
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>');
Please login to merge, or discard this patch.
src/Commands/Tags/PhpCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 			$explodedVersion = explode('.', $version);
102 102
 
103 103
 			$nextPatch = $explodedVersion[2] + 1;
104
-			$versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch;
104
+			$versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch;
105 105
 		}
106 106
 
107 107
 		// Use $branch from the previous loop to allow the next minor version (PHP's master branch)
108 108
 		$explodedVersion = explode('.', $branch);
109 109
 
110 110
 		$nextMinor   = $explodedVersion[1] + 1;
111
-		$nextRelease = $explodedVersion[0] . '.' . $nextMinor . '.0';
111
+		$nextRelease = $explodedVersion[0].'.'.$nextMinor.'.0';
112 112
 
113 113
 		if (!in_array($nextRelease, $versions, true))
114 114
 		{
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 		}
117 117
 
118 118
 		// Store the version data now
119
-		$path = APPROOT . '/versions/php.json';
119
+		$path = APPROOT.'/versions/php.json';
120 120
 
121 121
 		if (file_put_contents($path, json_encode($versions)) === false)
122 122
 		{
Please login to merge, or discard this patch.
src/Commands/UpdateCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
 		$this->getApplication()->out('<info>Updating server to git HEAD</info>');
32 32
 
33 33
 		// Pull from remote repo
34
-		$this->runCommand('cd ' . APPROOT . ' && git pull 2>&1');
34
+		$this->runCommand('cd '.APPROOT.' && git pull 2>&1');
35 35
 
36 36
 		$this->getApplication()->out('<info>Updating Composer resources</info>');
37 37
 
38 38
 		// Run Composer install
39
-		$this->runCommand('cd ' . APPROOT . ' && composer install --no-dev -o -a 2>&1');
39
+		$this->runCommand('cd '.APPROOT.' && composer install --no-dev -o -a 2>&1');
40 40
 
41 41
 		$this->getApplication()->out('<info>Update complete</info>');
42 42
 
Please login to merge, or discard this patch.
src/Database/Migrations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
 	 */
159 159
 	private function doMigration(string $version) : void
160 160
 	{
161
-		$sqlFile = 'migrations/' . $version . '.sql';
161
+		$sqlFile = 'migrations/'.$version.'.sql';
162 162
 
163 163
 		if (!$this->filesystem->has($sqlFile))
164 164
 		{
Please login to merge, or discard this patch.