Completed
Push — PHPCS-2-Test-Branch ( 36c0e6...7e90ca )
by Michael
02:11
created
www/index.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 {
26 26
 	$app = $container->get(Application::class);
27 27
 	$app->execute();
28
-}
29
-catch (\Exception $e)
28
+} catch (\Exception $e)
30 29
 {
31 30
 	if (!headers_sent())
32 31
 	{
Please login to merge, or discard this patch.
src/Views/Stats/StatsJsonView.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
 						}
80 80
 
81 81
 						$data[$key]['unknown']++;
82
-					}
83
-					else
82
+					} else
84 83
 					{
85 84
 						if (!isset($data[$key][$item->$key]))
86 85
 						{
Please login to merge, or discard this patch.
src/Controllers/DisplayControllerGet.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,15 +72,13 @@
 block discarded – undo
72 72
 			if ($this->cache->contains($key))
73 73
 			{
74 74
 				$body = $this->cache->fetch($key);
75
-			}
76
-			else
75
+			} else
77 76
 			{
78 77
 				$body = $this->view->render();
79 78
 
80 79
 				$this->cache->save($key, $body, $this->getApplication()->get('cache.lifetime', 900));
81 80
 			}
82
-		}
83
-		else
81
+		} else
84 82
 		{
85 83
 			$body = $this->view->render();
86 84
 		}
Please login to merge, or discard this patch.
src/Models/StatsModel.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@  discard block
 block discarded – undo
34 34
 			{
35 35
 				throw new \InvalidArgumentException('An invalid data source was requested.', 404);
36 36
 			}
37
-		}
38
-		else
37
+		} else
39 38
 		{
40 39
 			$column = '*';
41 40
 		}
@@ -75,8 +74,7 @@  discard block
 block discarded – undo
75 74
 		if ($recordExists)
76 75
 		{
77 76
 			$db->updateObject('#__jstats', $data, ['unique_id']);
78
-		}
79
-		else
77
+		} else
80 78
 		{
81 79
 			$db->insertObject('#__jstats', $data, ['unique_id']);
82 80
 		}
Please login to merge, or discard this patch.
src/CliApplication.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	/**
30 30
 	 * CliApplication constructor.
31 31
 	 *
32
-	 * @param   Input\Cli  $input    The application's input object.
32
+	 * @param   Cli  $input    The application's input object.
33 33
 	 * @param   Registry   $config   The application's configuration.
34 34
 	 * @param   CliOutput  $output   The application's output object.
35 35
 	 * @param   Console    $console  The application's console object.
Please login to merge, or discard this patch.
src/Console.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Stats;
4 4
 
5
-use Joomla\Application\Cli\ColorStyle;
6
-use Joomla\Application\Cli\Output\Processor\ColorProcessor;
7
-use Joomla\Controller\AbstractController;
8 5
 use Joomla\DI\ContainerAwareInterface;
9 6
 use Joomla\DI\ContainerAwareTrait;
10 7
 
Please login to merge, or discard this patch.
src/Providers/MonologServiceProvider.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Monolog\Logger;
9 9
 use Monolog\Processor\PsrLogMessageProcessor;
10 10
 use Monolog\Processor\WebProcessor;
11
-use Psr\Log\LoggerInterface;
12 11
 
13 12
 /**
14 13
  * Monolog service provider
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 		// Register the PSR-3 processor
32 32
 		$container->share(
33 33
 			'monolog.processor.psr3',
34
-			function () {
34
+			function() {
35 35
 				return new PsrLogMessageProcessor;
36 36
 			}
37 37
 		);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		// Register the web processor
40 40
 		$container->share(
41 41
 			'monolog.processor.web',
42
-			function () {
42
+			function() {
43 43
 				return new WebProcessor;
44 44
 			}
45 45
 		);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 		// Register the web application handler
48 48
 		$container->share(
49 49
 			'monolog.handler.application',
50
-			function (Container $container) {
50
+			function(Container $container) {
51 51
 				/** @var \Joomla\Registry\Registry $config */
52 52
 				$config = $container->get('config');
53 53
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		// Register the database handler
64 64
 		$container->share(
65 65
 			'monolog.handler.database',
66
-			function (Container $container) {
66
+			function(Container $container) {
67 67
 				/** @var \Joomla\Registry\Registry $config */
68 68
 				$config = $container->get('config');
69 69
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 		// Register the web application Logger
81 81
 		$container->share(
82 82
 			'monolog.logger.application',
83
-			function (Container $container) {
83
+			function(Container $container) {
84 84
 				return new Logger(
85 85
 					'Application',
86 86
 					[
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 		// Register the CLI application Logger
97 97
 		$container->share(
98 98
 			'monolog.logger.cli',
99
-			function (Container $container) {
99
+			function(Container $container) {
100 100
 				return new Logger(
101 101
 					'Application',
102 102
 					[
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 		// Register the database Logger
110 110
 		$container->share(
111 111
 			'monolog.logger.database',
112
-			function (Container $container) {
112
+			function(Container $container) {
113 113
 				return new Logger(
114 114
 					'Database',
115 115
 					[
Please login to merge, or discard this patch.
src/Commands/SnapshotCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
src/WebApplication.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
 		{
41 41
 			$controller = $this->router->getController($this->get('uri.route'));
42 42
 			$controller->execute();
43
-		}
44
-		catch (\Exception $e)
43
+		} catch (\Exception $e)
45 44
 		{
46 45
 			// Log the error for reference
47 46
 			$this->getLogger()->error(
Please login to merge, or discard this patch.