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