Completed
Push — master ( b9fa04...4e5c99 )
by Michael
02:19
created
boot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
www/index.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require dirname(__DIR__) . '/boot.php';
3
+require dirname(__DIR__).'/boot.php';
4 4
 
5 5
 use Joomla\Application\AbstractApplication;
6 6
 use Joomla\Application\AbstractWebApplication;
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 $container = (new Container)
18 18
 	->registerServiceProvider(new ApplicationServiceProvider)
19 19
 	->registerServiceProvider(new CacheServiceProvider)
20
-	->registerServiceProvider(new ConfigServiceProvider(APPROOT . '/etc/config.json'))
20
+	->registerServiceProvider(new ConfigServiceProvider(APPROOT.'/etc/config.json'))
21 21
 	->registerServiceProvider(new DatabaseServiceProvider)
22 22
 	->registerServiceProvider(new MonologServiceProvider);
23 23
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 	$response = [
50 50
 		'error' => true,
51
-		'message' => 'An error occurred while executing the application: ' . $e->getMessage()
51
+		'message' => 'An error occurred while executing the application: '.$e->getMessage()
52 52
 	];
53 53
 
54 54
 	echo json_encode($response);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 try
40 40
 {
41 41
 	$container->get(WebApplication::class)->execute();
42
-}
43
-catch (\Throwable $e)
42
+} catch (\Throwable $e)
44 43
 {
45 44
 	if (!headers_sent())
46 45
 	{
Please login to merge, or discard this patch.
src/Controllers/DisplayControllerGet.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 		// Serve cached data if the cache layer is enabled and the raw data source is not requested
68 68
 		if ($this->getApplication()->get('cache.enabled', false) && !$authorizedRaw)
69 69
 		{
70
-			$key = md5(get_class($this->view) . __METHOD__ . $source);
70
+			$key = md5(get_class($this->view).__METHOD__.$source);
71 71
 
72 72
 			if ($this->cache->contains($key))
73 73
 			{
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,22 +78,19 @@
 block discarded – undo
78 78
 				if ($item->isHit())
79 79
 				{
80 80
 					$body = $item->get();
81
-				}
82
-				else
81
+				} else
83 82
 				{
84 83
 					$body = $this->view->render();
85 84
 
86 85
 					$this->cacheData($key, $body);
87 86
 				}
88
-			}
89
-			else
87
+			} else
90 88
 			{
91 89
 				$body = $this->view->render();
92 90
 
93 91
 				$this->cacheData($key, $body);
94 92
 			}
95
-		}
96
-		else
93
+		} else
97 94
 		{
98 95
 			$body = $this->view->render();
99 96
 		}
Please login to merge, or discard this patch.
src/CliApplication.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@
 block discarded – undo
91 91
 	public function outputTitle($title, $subTitle = '', $width = 60)
92 92
 	{
93 93
 		$this->out(str_repeat('-', $width));
94
-		$this->out(str_repeat(' ', $width / 2 - (strlen($title) / 2)) . '<title>' . $title . '</title>');
94
+		$this->out(str_repeat(' ', $width / 2 - (strlen($title) / 2)).'<title>'.$title.'</title>');
95 95
 
96 96
 		if ($subTitle)
97 97
 		{
98
-			$this->out(str_repeat(' ', $width / 2 - (strlen($subTitle) / 2)) . '<b>' . $subTitle . '</b>');
98
+			$this->out(str_repeat(' ', $width / 2 - (strlen($subTitle) / 2)).'<b>'.$subTitle.'</b>');
99 99
 		}
100 100
 
101 101
 		$this->out(str_repeat('-', $width));
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 	/**
31 31
 	 * CliApplication constructor.
32 32
 	 *
33
-	 * @param   Input\Cli  $input     The application's input object.
33
+	 * @param   Cli  $input     The application's input object.
34 34
 	 * @param   Registry   $config    The application's configuration.
35 35
 	 * @param   CliOutput  $output    The application's output object.
36 36
 	 * @param   CliInput   $cliInput  The application's CLI input handler.
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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))
Please login to merge, or discard this patch.
src/Commands/HelpCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Commands/SnapshotCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 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
 	/**
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
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>');
Please login to merge, or discard this patch.
src/Models/StatsModel.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 			$db->getQuery(true)
93 93
 				->select('unique_id')
94 94
 				->from('#__jstats')
95
-				->where('unique_id = ' . $db->quote($data->unique_id))
95
+				->where('unique_id = '.$db->quote($data->unique_id))
96 96
 		)->loadResult();
97 97
 
98 98
 		if ($recordExists)
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 			$query = $db->getQuery(true)
56 56
 				->select($column);
57
-		}
58
-		else
57
+		} else
59 58
 		{
60 59
 			$query = $db->getQuery(true)
61 60
 				->select(['php_version', 'db_type', 'db_version', 'cms_version', 'server_os']);
@@ -74,8 +73,7 @@  discard block
 block discarded – undo
74 73
 				$query->setLimit($this->batchSize, $offset);
75 74
 
76 75
 				$db->setQuery($query);
77
-			}
78
-			else
76
+			} else
79 77
 			{
80 78
 				$db->setQuery($query, $offset, $this->batchSize);
81 79
 			}
@@ -119,8 +117,7 @@  discard block
 block discarded – undo
119 117
 		if ($recordExists)
120 118
 		{
121 119
 			$db->updateObject('#__jstats', $data, ['unique_id']);
122
-		}
123
-		else
120
+		} else
124 121
 		{
125 122
 			$db->insertObject('#__jstats', $data, ['unique_id']);
126 123
 		}
Please login to merge, or discard this patch.
src/Views/Stats/StatsJsonView.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
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]))
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,8 +105,7 @@  discard block
 block discarded – undo
105 105
 							}
106 106
 
107 107
 							${$source}['unknown']++;
108
-						}
109
-						else
108
+						} else
110 109
 						{
111 110
 							if (!isset(${$source}[$item[$source]]))
112 111
 							{
@@ -224,8 +223,7 @@  discard block
 block discarded – undo
224 223
 							}
225 224
 
226 225
 							$data[$source]['unknown']++;
227
-						}
228
-						else
226
+						} else
229 227
 						{
230 228
 							if (!isset($data[$source][$item[$source]]))
231 229
 							{
Please login to merge, or discard this patch.