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