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