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