Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (14 sloc) 0.359 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php

$worstOffender = null;
$averages = array();

foreach (array_slice($data['max'], 0, 10) as $method => $count) {
if ($count <= 7) {
continue;
}
$worstOffender = compact('method', 'count');
}
foreach (array_slice($data['class'], 0, 10) as $class => $count) {
$averages[$class] = $count;
}

echo json_encode(compact('worstOffender', 'averages'));

?>
Something went wrong with that request. Please try again.