Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 279-282 (lines=4) @@
276
277
					$sanitizedData = [];
278
279
					foreach ($counts as $version => $count)
280
					{
281
						$sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2);
282
					}
283
284
					$responseData[$key] = $sanitizedData;
285
@@ 308-311 (lines=4) @@
305
306
					$sanitizedData = [];
307
308
					foreach ($counts as $os => $count)
309
					{
310
						$sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2);
311
					}
312
313
					$responseData[$key] = $sanitizedData;
314