| @@ 256-259 (lines=4) @@ | ||
| 253 | ||
| 254 | $sanitizedData = []; |
|
| 255 | ||
| 256 | foreach ($counts as $version => $count) |
|
| 257 | { |
|
| 258 | $sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2); |
|
| 259 | } |
|
| 260 | ||
| 261 | $responseData[$key] = $sanitizedData; |
|
| 262 | ||
| @@ 285-288 (lines=4) @@ | ||
| 282 | ||
| 283 | $sanitizedData = []; |
|
| 284 | ||
| 285 | foreach ($counts as $os => $count) |
|
| 286 | { |
|
| 287 | $sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2); |
|
| 288 | } |
|
| 289 | ||
| 290 | $responseData[$key] = $sanitizedData; |
|
| 291 | ||