| @@ 289-292 (lines=4) @@ | ||
| 286 | ||
| 287 | $sanitizedData = []; | |
| 288 | ||
| 289 | foreach ($counts as $version => $count) | |
| 290 | 					{ | |
| 291 | $sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2); | |
| 292 | } | |
| 293 | ||
| 294 | $responseData[$key] = $sanitizedData; | |
| 295 | ||
| @@ 318-321 (lines=4) @@ | ||
| 315 | ||
| 316 | $sanitizedData = []; | |
| 317 | ||
| 318 | foreach ($counts as $os => $count) | |
| 319 | 					{ | |
| 320 | $sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2); | |
| 321 | } | |
| 322 | ||
| 323 | $responseData[$key] = $sanitizedData; | |
| 324 | ||