Completed
Push — master ( 08a2e6...0a909f )
by Michael
07:28
created
src/Commands/Tags/JoomlaCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,15 +87,15 @@
 block discarded – undo
87 87
 
88 88
 			// Allow the next patch release after this one
89 89
 			$nextPatch = $explodedVersion[2] + 1;
90
-			$versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch;
90
+			$versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch;
91 91
 
92 92
 			// And allow the next minor release after this one
93 93
 			$nextMinor = $explodedVersion[1] + 1;
94
-			$versions[] = $explodedVersion[0] . '.' . $nextMinor . '.0';
94
+			$versions[] = $explodedVersion[0].'.'.$nextMinor.'.0';
95 95
 		}
96 96
 
97 97
 		// Store the version data now
98
-		$path = APPROOT . '/versions/joomla.json';
98
+		$path = APPROOT.'/versions/joomla.json';
99 99
 
100 100
 		if (file_put_contents($path, json_encode($versions)) === false)
101 101
 		{
Please login to merge, or discard this patch.
src/Controllers/SubmitControllerCreate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		}
156 156
 
157 157
 		// Import the valid release listing
158
-		$path = APPROOT . '/versions/joomla.json';
158
+		$path = APPROOT.'/versions/joomla.json';
159 159
 
160 160
 		if (!file_exists($path))
161 161
 		{
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 		}
221 221
 
222 222
 		// Import the valid release listing
223
-		$path = APPROOT . '/versions/php.json';
223
+		$path = APPROOT.'/versions/php.json';
224 224
 
225 225
 		if (!file_exists($path))
226 226
 		{
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
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	{
69 69
 		return new Migrations(
70 70
 			$container->get('db'),
71
-			new Filesystem(new Local(APPROOT . '/etc'))
71
+			new Filesystem(new Local(APPROOT.'/etc'))
72 72
 		);
73 73
 	}
74 74
 }
Please login to merge, or discard this patch.
src/Providers/MonologServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 		$level = strtoupper($config->get('log.application', $config->get('log.level', 'error')));
95 95
 
96
-		return new StreamHandler(APPROOT . '/logs/stats.log', constant('\\Monolog\\Logger::' . $level));
96
+		return new StreamHandler(APPROOT.'/logs/stats.log', constant('\\Monolog\\Logger::'.$level));
97 97
 	}
98 98
 
99 99
 	/**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 		// If database debugging is enabled then force the logger's error level to DEBUG, otherwise use the level defined in the app config
114 114
 		$level = $config->get('database.debug', false) ? 'DEBUG' : strtoupper($config->get('log.database', $config->get('log.level', 'error')));
115 115
 
116
-		return new StreamHandler(APPROOT . '/logs/stats.log', constant('\\Monolog\\Logger::' . $level));
116
+		return new StreamHandler(APPROOT.'/logs/stats.log', constant('\\Monolog\\Logger::'.$level));
117 117
 	}
118 118
 
119 119
 	/**
Please login to merge, or discard this patch.
src/CliApplication.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@
 block discarded – undo
89 89
 	public function outputTitle(string $title, string $subTitle = '', int $width = 60) : CliApplication
90 90
 	{
91 91
 		$this->out(str_repeat('-', $width));
92
-		$this->out(str_repeat(' ', $width / 2 - (strlen($title) / 2)) . '<title>' . $title . '</title>');
92
+		$this->out(str_repeat(' ', $width / 2 - (strlen($title) / 2)).'<title>'.$title.'</title>');
93 93
 
94 94
 		if ($subTitle)
95 95
 		{
96
-			$this->out(str_repeat(' ', $width / 2 - (strlen($subTitle) / 2)) . '<b>' . $subTitle . '</b>');
96
+			$this->out(str_repeat(' ', $width / 2 - (strlen($subTitle) / 2)).'<b>'.$subTitle.'</b>');
97 97
 		}
98 98
 
99 99
 		$this->out(str_repeat('-', $width));
Please login to merge, or discard this patch.
www/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * @license    http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later
7 7
  */
8 8
 
9
-require dirname(__DIR__) . '/boot.php';
9
+require dirname(__DIR__).'/boot.php';
10 10
 
11 11
 use Joomla\Application\{
12 12
 	AbstractApplication, AbstractWebApplication
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 $container = (new Container)
25 25
 	->registerServiceProvider(new ApplicationServiceProvider)
26
-	->registerServiceProvider(new ConfigServiceProvider(APPROOT . '/etc/config.json'))
26
+	->registerServiceProvider(new ConfigServiceProvider(APPROOT.'/etc/config.json'))
27 27
 	->registerServiceProvider(new DatabaseServiceProvider)
28 28
 	->registerServiceProvider(new GitHubServiceProvider)
29 29
 	->registerServiceProvider(new MonologServiceProvider);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 	$response = [
60 60
 		'error' => true,
61
-		'message' => 'An error occurred while executing the application: ' . $e->getMessage()
61
+		'message' => 'An error occurred while executing the application: '.$e->getMessage()
62 62
 	];
63 63
 
64 64
 	echo json_encode($response);
Please login to merge, or discard this patch.
src/Commands/Snapshot/RecentCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 */
35 35
 	public function __construct(StatsJsonView $view)
36 36
 	{
37
-		$this->view  = $view;
37
+		$this->view = $view;
38 38
 	}
39 39
 
40 40
 	/**
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 		$this->view->isAuthorizedRaw(true);
51 51
 		$this->view->isRecent(true);
52 52
 
53
-		$file = APPROOT . '/snapshots/' . date('YmdHis') . '_recent';
53
+		$file = APPROOT.'/snapshots/'.date('YmdHis').'_recent';
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 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 			return $db->setQuery(
59 59
 				$query
60 60
 					->select('*')
61
-					->from($db->quoteName('#__jstats_counter_' . $column))
61
+					->from($db->quoteName('#__jstats_counter_'.$column))
62 62
 			)->loadAssocList();
63 63
 		}
64 64
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			$return[$column] = $db->setQuery(
76 76
 				$query->clear()
77 77
 					->select('*')
78
-					->from($db->quoteName('#__jstats_counter_' . $column))
78
+					->from($db->quoteName('#__jstats_counter_'.$column))
79 79
 			)->loadAssocList();
80 80
 		}
81 81
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 			$return[$column] = $db->setQuery(
110 110
 				$query->select($column)
111
-					->select('COUNT(' . $column . ') AS count')
111
+					->select('COUNT('.$column.') AS count')
112 112
 					->from($db->quoteName('#__jstats'))
113 113
 					->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()')
114 114
 					->group($column)
Please login to merge, or discard this patch.
src/Commands/Tags/PhpCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 			$explodedVersion = explode('.', $version);
102 102
 
103 103
 			$nextPatch = $explodedVersion[2] + 1;
104
-			$versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch;
104
+			$versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch;
105 105
 		}
106 106
 
107 107
 		// Use $branch from the previous loop to allow the next minor version (PHP's master branch)
108 108
 		$explodedVersion = explode('.', $branch);
109 109
 
110 110
 		$nextMinor   = $explodedVersion[1] + 1;
111
-		$nextRelease = $explodedVersion[0] . '.' . $nextMinor . '.0';
111
+		$nextRelease = $explodedVersion[0].'.'.$nextMinor.'.0';
112 112
 
113 113
 		if (!in_array($nextRelease, $versions, true))
114 114
 		{
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 		}
117 117
 
118 118
 		// Store the version data now
119
-		$path = APPROOT . '/versions/php.json';
119
+		$path = APPROOT.'/versions/php.json';
120 120
 
121 121
 		if (file_put_contents($path, json_encode($versions)) === false)
122 122
 		{
Please login to merge, or discard this patch.