| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| 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(5.8, 18, $bound->getAverage('difficulty')) |
||
| 46 | , $this->calculator->highIsBetter(42, 32, $bound->getAverage('commentWeight')) |
||
| 47 | ); |
||
| 48 | return round(array_sum($notes) / count($notes, COUNT_NORMAL), 2); |
||
| 49 | } |
||
| 50 | |||
| 57 | } |