@@ 300-303 (lines=4) @@ | ||
297 | ||
298 | $sanitizedData = []; |
|
299 | ||
300 | foreach ($counts as $version => $count) |
|
301 | { |
|
302 | $sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2); |
|
303 | } |
|
304 | ||
305 | $responseData[$key] = $sanitizedData; |
|
306 | ||
@@ 329-332 (lines=4) @@ | ||
326 | ||
327 | $sanitizedData = []; |
|
328 | ||
329 | foreach ($counts as $os => $count) |
|
330 | { |
|
331 | $sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2); |
|
332 | } |
|
333 | ||
334 | $responseData[$key] = $sanitizedData; |
|
335 |