Completed
Push — master ( f61480...99f38e )
by Michael
06: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.
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/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.
src/GitHub/GitHub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 */
26 26
 	public function __get($name)
27 27
 	{
28
-		$class = __NAMESPACE__ . '\\Package\\' . ucfirst($name);
28
+		$class = __NAMESPACE__.'\\Package\\'.ucfirst($name);
29 29
 
30 30
 		if (class_exists($class))
31 31
 		{
Please login to merge, or discard this patch.
src/GitHub/Package.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	 */
24 24
 	public function __get($name)
25 25
 	{
26
-		$class = __NAMESPACE__ . '\\' . $this->package . '\\' . ucfirst($name);
26
+		$class = __NAMESPACE__.'\\'.$this->package.'\\'.ucfirst($name);
27 27
 
28 28
 		if (class_exists($class))
29 29
 		{
Please login to merge, or discard this patch.
src/GitHub/Package/Repositories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 	public function getTags($owner, $repo, $page = 0)
50 50
 	{
51 51
 		// Build the request path.
52
-		$path = '/repos/' . $owner . '/' . $repo . '/tags';
52
+		$path = '/repos/'.$owner.'/'.$repo.'/tags';
53 53
 
54 54
 		// Send the request.
55 55
 		$this->apiResponse = $this->client->get($this->fetchUrl($path, $page));
Please login to merge, or discard this patch.
src/Models/StatsModel.php 1 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.