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