Completed
Pull Request — master (#43)
by Michael
09:54
created
src/Views/Stats/StatsJsonView.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 						case 'cms_php_version':
148 148
 							if ((isset($item['cms_version']) && $item['cms_version'] !== null) && (isset($item['php_version']) && $item['php_version'] !== null))
149 149
 							{
150
-								$index = $item['cms_version'] . ' - ' . $item['php_version'];
150
+								$index = $item['cms_version'].' - '.$item['php_version'];
151 151
 								$cms_php_version[$index] = $item['count'];
152 152
 								$this->totalItems += $item['count'];								
153 153
 							}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 						case 'db_type_version':
157 157
 							if ((isset($item['db_type']) && $item['db_type'] !== null) && (isset($item['db_version']) && $item['db_version'] !== null))
158 158
 							{
159
-								$index = $item['db_type'] . ' - ' . $item['db_version'];
159
+								$index = $item['db_type'].' - '.$item['db_version'];
160 160
 								$db_type_version[$index] = $item['count'];
161 161
 								$this->totalItems += $item['count'];								
162 162
 							}
@@ -268,12 +268,12 @@  discard block
 block discarded – undo
268 268
 					break;
269 269
 
270 270
 				case 'cms_php_version':
271
-					$index = $item['cms_version'] . ' - ' . $item['php_version'];
271
+					$index = $item['cms_version'].' - '.$item['php_version'];
272 272
 					$data[$this->source][$index] = $item['count'];
273 273
 					break;
274 274
 
275 275
 				case 'db_type_version':
276
-					$index = $item['db_type'] . ' - ' . $item['db_version'];
276
+					$index = $item['db_type'].' - '.$item['db_version'];
277 277
 					$data[$this->source][$index] = $item['count'];
278 278
 					break;
279 279
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 					foreach ($dataGroup as $row)
317 317
 					{
318 318
 						$exploded = explode('.', $row['name']);
319
-						$version  = $exploded[0] . '.' . ($exploded[1] ?? '0');
319
+						$version  = $exploded[0].'.'.($exploded[1] ?? '0');
320 320
 
321 321
 						// If the container does not exist, add it
322 322
 						if (!isset($counts[$version]))
Please login to merge, or discard this patch.