Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 285-288 (lines=4) @@
282
283
					$sanitizedData = [];
284
285
					foreach ($counts as $version => $count)
286
					{
287
						$sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2);
288
					}
289
290
					$responseData[$key] = $sanitizedData;
291
@@ 314-317 (lines=4) @@
311
312
					$sanitizedData = [];
313
314
					foreach ($counts as $os => $count)
315
					{
316
						$sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2);
317
					}
318
319
					$responseData[$key] = $sanitizedData;
320