Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

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