| @@ 267-270 (lines=4) @@ | ||
| 264 | ||
| 265 | $sanitizedData = []; |
|
| 266 | ||
| 267 | foreach ($counts as $version => $count) |
|
| 268 | { |
|
| 269 | $sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2); |
|
| 270 | } |
|
| 271 | ||
| 272 | $responseData[$key] = $sanitizedData; |
|
| 273 | ||
| @@ 296-299 (lines=4) @@ | ||
| 293 | ||
| 294 | $sanitizedData = []; |
|
| 295 | ||
| 296 | foreach ($counts as $os => $count) |
|
| 297 | { |
|
| 298 | $sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2); |
|
| 299 | } |
|
| 300 | ||
| 301 | $responseData[$key] = $sanitizedData; |
|
| 302 | ||