Completed
Push — master ( 8199d5...4a9074 )
by Michael
03:25 queued 01: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/Providers/DatabaseServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Providers/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	{
54 54
 		$container->share(
55 55
 			'config',
56
-			function ()
56
+			function()
57 57
 			{
58 58
 				return $this->config;
59 59
 			},
Please login to merge, or discard this patch.
src/Models/StatsModel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
src/Providers/CacheServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
 
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/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
 			{
36 36
 				return new PsrLogMessageProcessor;
37 37
 			}
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 		// Register the web processor
41 41
 		$container->share(
42 42
 			'monolog.processor.web',
43
-			function ()
43
+			function()
44 44
 			{
45 45
 				return new WebProcessor;
46 46
 			}
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 		// Register the web application handler
50 50
 		$container->share(
51 51
 			'monolog.handler.application',
52
-			function (Container $container)
52
+			function(Container $container)
53 53
 			{
54 54
 				/** @var \Joomla\Registry\Registry $config */
55 55
 				$config = $container->get('config');
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		// Register the database handler
67 67
 		$container->share(
68 68
 			'monolog.handler.database',
69
-			function (Container $container)
69
+			function(Container $container)
70 70
 			{
71 71
 				/** @var \Joomla\Registry\Registry $config */
72 72
 				$config = $container->get('config');
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		// Register the web application Logger
85 85
 		$container->share(
86 86
 			'monolog.logger.application',
87
-			function (Container $container)
87
+			function(Container $container)
88 88
 			{
89 89
 				return new Logger(
90 90
 					'Application',
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		// Register the CLI application Logger
102 102
 		$container->share(
103 103
 			'monolog.logger.cli',
104
-			function (Container $container)
104
+			function(Container $container)
105 105
 			{
106 106
 				return new Logger(
107 107
 					'Application',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		// Register the database Logger
116 116
 		$container->share(
117 117
 			'monolog.logger.database',
118
-			function (Container $container)
118
+			function(Container $container)
119 119
 			{
120 120
 				return new Logger(
121 121
 					'Database',
Please login to merge, or discard this patch.