@@ 332-335 (lines=4) @@ | ||
329 | ||
330 | $sanitizedData = []; |
|
331 | ||
332 | foreach ($counts as $version => $count) |
|
333 | { |
|
334 | $sanitizedData[$version] = round(($count / $this->totalItems) * 100, 2); |
|
335 | } |
|
336 | ||
337 | $responseData[$key] = $sanitizedData; |
|
338 | ||
@@ 361-364 (lines=4) @@ | ||
358 | ||
359 | $sanitizedData = []; |
|
360 | ||
361 | foreach ($counts as $os => $count) |
|
362 | { |
|
363 | $sanitizedData[$os] = round(($count / $this->totalItems) * 100, 2); |
|
364 | } |
|
365 | ||
366 | $responseData[$key] = $sanitizedData; |
|
367 |