plugin/exo/Manager/Attempt/ScoreManager.php
public function applyPenalties($score, CorrectedAnswer $correctedAnswer)
    {
        $penalties = $correctedAnswer->getPenalties();
        foreach ($penalties as $penalty) {
            $score -= $penalty->getPenalty();
        }

        return $score;
    }
public function applyPenalties($score, CorrectedAnswer $correctedAnswer)
    {
        $penalties = $correctedAnswer->getPenalties();
        foreach ($penalties as $penalty) {
            $score -= $penalty->getPenalty();
        }

        return $score;
    }
public function applyPenalties ( $ score , CorrectedAnswer $ correctedAnswer ) { $ penalties = $ correctedAnswer -> getPenalties ( ) ; foreach ( $ penalties as $ penalty ) { $ score -= $ penalty -> getPenalty ( ) ; } return $ score ; }
Applies hint penalties to a score.

@param float           $score
@param CorrectedAnswer $correctedAnswer

@return float
Applies hint penalties to a score .