Completed
Push — master ( bc6e33...5ebe84 )
by Michael
03:24
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/MonologServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 		// Register the web processor
31 31
 		$container->share(
32 32
 			'monolog.processor.web',
33
-			function ()
33
+			function()
34 34
 			{
35 35
 				return new WebProcessor;
36 36
 			}
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		// Register the main application handler
40 40
 		$container->share(
41 41
 			'monolog.handler.application',
42
-			function (Container $container)
42
+			function(Container $container)
43 43
 			{
44 44
 				/** @var \Joomla\Registry\Registry $config */
45 45
 				$config = $container->get('config');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 		// Register the database handler
57 57
 		$container->share(
58 58
 			'monolog.handler.database',
59
-			function (Container $container)
59
+			function(Container $container)
60 60
 			{
61 61
 				/** @var \Joomla\Registry\Registry $config */
62 62
 				$config = $container->get('config');
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			->alias(LoggerInterface::class, Logger::class)
78 78
 			->share(
79 79
 				Logger::class,
80
-				function (Container $container)
80
+				function(Container $container)
81 81
 				{
82 82
 					return new Logger(
83 83
 						'JStatsServer',
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		// Register the database Logger
95 95
 		$container->share(
96 96
 			'monolog.logger.database',
97
-			function (Container $container)
97
+			function(Container $container)
98 98
 			{
99 99
 				return new Logger(
100 100
 					'JStatsServer',
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/Providers/ApplicationServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 			->alias(JoomlaApplication\AbstractWebApplication::class, JoomlaApplication\AbstractApplication::class)
38 38
 			->share(
39 39
 				JoomlaApplication\AbstractApplication::class,
40
-				function (Container $container)
40
+				function(Container $container)
41 41
 				{
42 42
 					$application = new Application($container->get(Input::class), $container->get('config'));
43 43
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 		$container->share(
54 54
 			Input::class,
55
-			function ()
55
+			function()
56 56
 			{
57 57
 				return new Input($_REQUEST);
58 58
 			},
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 		$container->share(
63 63
 			Router::class,
64
-			function (Container $container)
64
+			function(Container $container)
65 65
 			{
66 66
 				$router = (new Router($container->get('Joomla\\Input\\Input')))
67 67
 					->setContainer($container)
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
 		$container->share(
79 79
 			DisplayControllerGet::class,
80
-			function (Container $container)
80
+			function(Container $container)
81 81
 			{
82 82
 				$controller = new DisplayControllerGet(
83 83
 					$container->get(StatsJsonView::class)
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 		$container->share(
95 95
 			SubmitControllerCreate::class,
96
-			function (Container $container)
96
+			function(Container $container)
97 97
 			{
98 98
 				$controller = new SubmitControllerCreate(
99 99
 					$container->get('Stats\\Models\\StatsModel')
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
 		$container->share(
111 111
 			SubmitControllerGet::class,
112
-			function (Container $container)
112
+			function(Container $container)
113 113
 			{
114 114
 				$controller = new SubmitControllerGet;
115 115
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
 		$container->share(
125 125
 			StatsModel::class,
126
-			function (Container $container)
126
+			function(Container $container)
127 127
 			{
128 128
 				return new StatsModel(
129 129
 					$container->get(DatabaseDriver::class)
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
 		$container->share(
136 136
 			StatsJsonView::class,
137
-			function (Container $container)
137
+			function(Container $container)
138 138
 			{
139 139
 				return new StatsJsonView(
140 140
 					$container->get(StatsModel::class)
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/Application.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.