Completed
Push — influxdb ( cf9cfb )
by
unknown
09:10
created
src/Providers/WebApplicationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 			'/:source',
136 136
 			DisplayStatisticsController::class,
137 137
 			[
138
-				'source' => '(' . implode('|', StatisticsRepository::ALLOWED_SOURCES) . ')',
138
+				'source' => '('.implode('|', StatisticsRepository::ALLOWED_SOURCES).')',
139 139
 			]
140 140
 		);
141 141
 
Please login to merge, or discard this patch.
src/Providers/FlysystemServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 */
42 42
 	public function getMigrationsFilesystemService(Container $container): Filesystem
43 43
 	{
44
-		return new Filesystem(new Local(APPROOT . '/etc/migrations'));
44
+		return new Filesystem(new Local(APPROOT.'/etc/migrations'));
45 45
 	}
46 46
 
47 47
 	/**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 */
54 54
 	public function getSnapshotFilesystemService(Container $container): Filesystem
55 55
 	{
56
-		return new Filesystem(new Local(APPROOT . '/snapshots'));
56
+		return new Filesystem(new Local(APPROOT.'/snapshots'));
57 57
 	}
58 58
 
59 59
 	/**
@@ -65,6 +65,6 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function getVersionsFilesystemService(Container $container): Filesystem
67 67
 	{
68
-		return new Filesystem(new Local(APPROOT . '/versions'));
68
+		return new Filesystem(new Local(APPROOT.'/versions'));
69 69
 	}
70 70
 }
Please login to merge, or discard this patch.
src/Commands/Tags/FetchPhpTagsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,14 +115,14 @@
 block discarded – undo
115 115
 			$explodedVersion = explode('.', $version);
116 116
 
117 117
 			$nextPatch  = $explodedVersion[2] + 1;
118
-			$versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch;
118
+			$versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch;
119 119
 		}
120 120
 
121 121
 		// Use $branch from the previous loop to allow the next minor version (PHP's master branch)
122 122
 		$explodedVersion = explode('.', $branch);
123 123
 
124 124
 		$nextMinor   = $explodedVersion[1] + 1;
125
-		$nextRelease = $explodedVersion[0] . '.' . $nextMinor . '.0';
125
+		$nextRelease = $explodedVersion[0].'.'.$nextMinor.'.0';
126 126
 
127 127
 		// There won't be a PHP 7.5, change next release to 8.0 if needed
128 128
 		if ($nextRelease === '7.5.0')
Please login to merge, or discard this patch.
src/Views/Stats/StatsJsonView.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 							if ((isset($item['cms_version']) && $item['cms_version'] !== null)
153 153
 								&& (isset($item['php_version']) && $item['php_version'] !== null))
154 154
 							{
155
-								$index = $item['cms_version'] . ' - ' . $item['php_version'];
155
+								$index = $item['cms_version'].' - '.$item['php_version'];
156 156
 								$cms_php_version[$index] = $item['count'];
157 157
 
158 158
 								$this->totalItems += $item['count'];
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 							if ((isset($item['db_type']) && $item['db_type'] !== null)
165 165
 								&& (isset($item['db_version']) && $item['db_version'] !== null))
166 166
 							{
167
-								$index = $item['db_type'] . ' - ' . $item['db_version'];
167
+								$index = $item['db_type'].' - '.$item['db_version'];
168 168
 								$db_type_version[$index] = $item['count'];
169 169
 
170 170
 								$this->totalItems += $item['count'];
@@ -281,12 +281,12 @@  discard block
 block discarded – undo
281 281
 					break;
282 282
 
283 283
 				case 'cms_php_version':
284
-					$index = $item['cms_version'] . ' - ' . $item['php_version'];
284
+					$index = $item['cms_version'].' - '.$item['php_version'];
285 285
 					$data[$this->source][$index] = $item['count'];
286 286
 					break;
287 287
 
288 288
 				case 'db_type_version':
289
-					$index = $item['db_type'] . ' - ' . $item['db_version'];
289
+					$index = $item['db_type'].' - '.$item['db_version'];
290 290
 					$data[$this->source][$index] = $item['count'];
291 291
 					break;
292 292
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 					foreach ($dataGroup as $row)
330 330
 					{
331 331
 						$exploded = explode('.', $row['name']);
332
-						$version  = $exploded[0] . '.' . ($exploded[1] ?? '0');
332
+						$version  = $exploded[0].'.'.($exploded[1] ?? '0');
333 333
 
334 334
 						// If the container does not exist, add it
335 335
 						if (!isset($counts[$version]))
Please login to merge, or discard this patch.
src/Repositories/StatisticsRepository.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 			return $this->db->setQuery(
65 65
 				$this->db->getQuery(true)
66 66
 					->select('*')
67
-					->from($this->db->quoteName('#__jstats_counter_' . $column))
67
+					->from($this->db->quoteName('#__jstats_counter_'.$column))
68 68
 			)->loadAssocList();
69 69
 		}
70 70
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			$return[$column] = $this->db->setQuery(
76 76
 				$this->db->getQuery(true)
77 77
 					->select('*')
78
-					->from($this->db->quoteName('#__jstats_counter_' . $column))
78
+					->from($this->db->quoteName('#__jstats_counter_'.$column))
79 79
 			)->loadAssocList();
80 80
 		}
81 81
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 				$return[$column] = $this->db->setQuery(
102 102
 					$this->db->getQuery(true)
103 103
 						->select($column)
104
-						->select('COUNT(' . $column . ') AS count')
104
+						->select('COUNT('.$column.') AS count')
105 105
 						->from($this->db->quoteName('#__jstats'))
106 106
 						->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()')
107 107
 						->group($column)
@@ -113,11 +113,11 @@  discard block
 block discarded – undo
113 113
 			{
114 114
 				$return['cms_php_version'] = $this->db->setQuery(
115 115
 					$this->db->getQuery(true)
116
-						->select('CONCAT(' . $db->qn('cms_version') . ', ' . $db->q(' - ') . ', ' . $db->qn('php_version') . ') AS cms_php_version')
116
+						->select('CONCAT('.$db->qn('cms_version').', '.$db->q(' - ').', '.$db->qn('php_version').') AS cms_php_version')
117 117
 						->select('COUNT(*) AS count')
118 118
 						->from($this->db->quoteName('#__jstats'))
119 119
 						->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()')
120
-						->group('CONCAT(' . $db->qn('cms_version') . ', ' . $db->q(' - ') . ', ' . $db->qn('php_version') . ')')
120
+						->group('CONCAT('.$db->qn('cms_version').', '.$db->q(' - ').', '.$db->qn('php_version').')')
121 121
 				)->loadAssocList();
122 122
 				continue;
123 123
 			}
@@ -126,11 +126,11 @@  discard block
 block discarded – undo
126 126
 			{
127 127
 				$return['db_type_version'] = $this->db->setQuery(
128 128
 					$this->db->getQuery(true)
129
-						->select('CONCAT(' . $db->qn('db_type') . ', ' . $db->q(' - ') . ', ' . $db->qn('db_version') . ') AS db_type_version')
129
+						->select('CONCAT('.$db->qn('db_type').', '.$db->q(' - ').', '.$db->qn('db_version').') AS db_type_version')
130 130
 						->select('COUNT(*) AS count')
131 131
 						->from($this->db->quoteName('#__jstats'))
132 132
 						->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()')
133
-						->group('CONCAT(' . $db->qn('db_type') . ', ' . $db->q(' - ') . ', ' . $db->qn('db_version') . ')')
133
+						->group('CONCAT('.$db->qn('db_type').', '.$db->q(' - ').', '.$db->qn('db_version').')')
134 134
 				)->loadAssocList();
135 135
 				continue;
136 136
 			}
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
 			$return[$column] = $this->db->setQuery(
176 176
 				$this->db->getQuery(true)
177 177
 					->select($column)
178
-					->select('COUNT(' . $column . ') AS count')
179
-					->from('(SELECT * FROM ' . $this->db->quoteName('#__jstats')
180
-						. ' WHERE modified > DATE_SUB(NOW(), INTERVAL ' . $this->db->quote($timeframe) . ' DAY)) AS tmptable'
178
+					->select('COUNT('.$column.') AS count')
179
+					->from('(SELECT * FROM '.$this->db->quoteName('#__jstats')
180
+						. ' WHERE modified > DATE_SUB(NOW(), INTERVAL '.$this->db->quote($timeframe).' DAY)) AS tmptable'
181 181
 					)
182 182
 					->group($column)
183 183
 			)->loadAssocList();
Please login to merge, or discard this patch.
src/Repositories/InfluxdbRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		$point
80 80
 			->addTag('cms_version', $data->cms_version)
81 81
 			->addTag('cms_major', $matches[1])
82
-			->addTag('cms_minor', $matches[1] . '.' . $matches[2]);
82
+			->addTag('cms_minor', $matches[1].'.'.$matches[2]);
83 83
 
84 84
 		$writeApi->write($point, WritePrecision::S, 'cms');
85 85
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 ->addTag('db_driver', $data->db_type)
109 109
                 ->addTag('db_server', $dbServer)
110 110
                 ->addTag('db_major', $matches[1])
111
-                ->addTag('db_minor', $matches[1] . '.' . $matches[2]);
111
+                ->addTag('db_minor', $matches[1].'.'.$matches[2]);
112 112
 
113 113
             $writeApi->write($point, WritePrecision::S, 'database');
114 114
         }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             $point
134 134
                 ->addTag('php_version', $data->php_version)
135 135
                 ->addTag('db_major', $matches[1])
136
-                ->addTag('db_minor', $matches[1] . '.' . $matches[2]);
136
+                ->addTag('db_minor', $matches[1].'.'.$matches[2]);
137 137
             $writeApi->write($point, WritePrecision::S, 'php');
138 138
         }
139 139
 	}
Please login to merge, or discard this patch.
src/Kernel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         $container->share(
114 114
                 \InfluxDB2\Client::class,
115
-                function (Container $container) {
115
+                function(Container $container) {
116 116
                     /** @var \Joomla\Registry\Registry $config */
117 117
                     $config  = $container->get('config');
118 118
                     $options = (array) $config->get('influxdb');
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
 	private function loadConfiguration(): Registry
134 134
 	{
135 135
 		$registry = new Registry;
136
-		$registry->loadFile(APPROOT . '/etc/config.dist.json');
136
+		$registry->loadFile(APPROOT.'/etc/config.dist.json');
137 137
 
138
-		if (file_exists(APPROOT . '/etc/config.json'))
138
+		if (file_exists(APPROOT.'/etc/config.json'))
139 139
 		{
140
-			$registry->loadFile(APPROOT . '/etc/config.json');
140
+			$registry->loadFile(APPROOT.'/etc/config.json');
141 141
 		}
142 142
 
143 143
 		return $registry;
Please login to merge, or discard this patch.