| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public function calculate(ResultCollection $collection, ResultCollection $groupedResults, ResultInterface $bound) { |
||
| 44 | $notes = array( |
||
| 45 | $this->calculator->lowIsBetter(65, 154, $bound->getAverage('loc')) |
||
| 46 | , $this->calculator->highIsBetter(9, 30, $bound->getAverage('logicalLoc')) |
||
| 47 | , $this->calculator->highIsBetter(27, 59, $bound->getAverage('vocabulary')) |
||
| 48 | ); |
||
| 49 | return round(array_sum($notes) / count($notes, COUNT_NORMAL), 2); |
||
| 50 | } |
||
| 51 | |||
| 58 | } |