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