Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 342-345 (lines=4) @@
339
340
					$sanitizedData = [];
341
342
					foreach ($counts as $version => $count)
343
					{
344
						$sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2);
345
					}
346
347
					$responseData[$key] = $sanitizedData;
348
@@ 371-374 (lines=4) @@
368
369
					$sanitizedData = [];
370
371
					foreach ($counts as $os => $count)
372
					{
373
						$sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2);
374
					}
375
376
					$responseData[$key] = $sanitizedData;
377