| @@ 284-287 (lines=4) @@ | ||
| 281 | ||
| 282 | $sanitizedData = []; |
|
| 283 | ||
| 284 | foreach ($counts as $version => $count) |
|
| 285 | { |
|
| 286 | $sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2); |
|
| 287 | } |
|
| 288 | ||
| 289 | $responseData[$key] = $sanitizedData; |
|
| 290 | ||
| @@ 313-316 (lines=4) @@ | ||
| 310 | ||
| 311 | $sanitizedData = []; |
|
| 312 | ||
| 313 | foreach ($counts as $os => $count) |
|
| 314 | { |
|
| 315 | $sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2); |
|
| 316 | } |
|
| 317 | ||
| 318 | $responseData[$key] = $sanitizedData; |
|
| 319 | ||