| @@ 140-143 (lines=4) @@ | ||
| 137 | ||
| 138 | $sanitizedData = []; |
|
| 139 | ||
| 140 | foreach ($counts as $version => $count) |
|
| 141 | { |
|
| 142 | $sanitizedData[$version] = round(($count / $total) * 100, 2); |
|
| 143 | } |
|
| 144 | ||
| 145 | $responseData[$key] = $sanitizedData; |
|
| 146 | ||
| @@ 169-172 (lines=4) @@ | ||
| 166 | ||
| 167 | $sanitizedData = []; |
|
| 168 | ||
| 169 | foreach ($counts as $os => $count) |
|
| 170 | { |
|
| 171 | $sanitizedData[$os] = round(($count / $total) * 100, 2); |
|
| 172 | } |
|
| 173 | ||
| 174 | $responseData[$key] = $sanitizedData; |
|
| 175 | ||