Completed
Push — master ( 01a392...28aabc )
by Michael
03:51
created
src/Providers/CacheServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		$container->alias('cache', CacheInterface::class)
29 29
 			->share(
30 30
 				CacheInterface::class,
31
-				function (Container $container)
31
+				function(Container $container)
32 32
 				{
33 33
 					/** @var \Joomla\Registry\Registry $config */
34 34
 					$config = $container->get('config');
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 							// If the path is relative, make it absolute
61 61
 							if (substr($path, 0, 1) !== '/')
62 62
 							{
63
-								$path = APPROOT . '/' . $path;
63
+								$path = APPROOT.'/'.$path;
64 64
 							}
65 65
 
66 66
 							$handler = new Cache\FilesystemCache($path);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 							// If the path is relative, make it absolute
80 80
 							if (substr($path, 0, 1) !== '/')
81 81
 							{
82
-								$path = APPROOT . '/' . $path;
82
+								$path = APPROOT.'/'.$path;
83 83
 							}
84 84
 
85 85
 							$handler = new Cache\PhpFileCache($path);
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
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
 			);
54 54
 
55 55
 			yield $db->loadAssocList();
56
-		}
57
-		else
56
+		} else
58 57
 		{
59 58
 			// If fetching all data from the table, we need to break this down a fair bit otherwise we're going to run out of memory
60 59
 			$totalRecords = $db->setQuery(
@@ -80,8 +79,7 @@  discard block
 block discarded – undo
80 79
 					$query->setLimit($this->batchSize, $offset);
81 80
 
82 81
 					$db->setQuery($query);
83
-				}
84
-				else
82
+				} else
85 83
 				{
86 84
 					$db->setQuery($query, $offset, $this->batchSize);
87 85
 				}
@@ -126,8 +124,7 @@  discard block
 block discarded – undo
126 124
 		if ($recordExists)
127 125
 		{
128 126
 			$db->updateObject('#__jstats', $data, ['unique_id']);
129
-		}
130
-		else
127
+		} else
131 128
 		{
132 129
 			$db->insertObject('#__jstats', $data, ['unique_id']);
133 130
 		}
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.