Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 306-309 (lines=4) @@
303
304
					$sanitizedData = [];
305
306
					foreach ($counts as $version => $count)
307
					{
308
						$sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2);
309
					}
310
311
					$responseData[$key] = $sanitizedData;
312
@@ 335-338 (lines=4) @@
332
333
					$sanitizedData = [];
334
335
					foreach ($counts as $os => $count)
336
					{
337
						$sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2);
338
					}
339
340
					$responseData[$key] = $sanitizedData;
341