plugin/exo/Manager/Attempt/PaperManager.php
public function isScoreAvailable(Exercise $exercise, Paper $paper)
    {
        $markMode = $exercise->getMarkMode();
        switch ($markMode) {
            case ShowScoreAt::AFTER_END:
                $available = !empty($paper->getEnd());
                break;
            case ShowScoreAt::NEVER:
                $available = false;
                break;
            case ShowScoreAt::WITH_CORRECTION:
            default:
                $available = $this->isSolutionAvailable($exercise, $paper);
                break;
        }

        return $available;
    }
public function isScoreAvailable(Exercise $exercise, Paper $paper)
    {
        $markMode = $exercise->getMarkMode();
        switch ($markMode) {
            case ShowScoreAt::AFTER_END:
                $available = !empty($paper->getEnd());
                break;
            case ShowScoreAt::NEVER:
                $available = false;
                break;
            case ShowScoreAt::WITH_CORRECTION:
            default:
                $available = $this->isSolutionAvailable($exercise, $paper);
                break;
        }

        return $available;
    }
public function isScoreAvailable ( Exercise $ exercise , Paper $ paper ) { $ markMode = $ exercise -> getMarkMode ( ) ; switch ( $ markMode ) { case ShowScoreAt :: AFTER_END : $ available = ! empty ( $ paper -> getEnd ( ) ) ; break ; case ShowScoreAt :: NEVER : $ available = false ; break ; case ShowScoreAt :: WITH_CORRECTION : default : $ available = $ this -> isSolutionAvailable ( $ exercise , $ paper ) ; break ; } return $ available ; }
Check if the score of the Paper is available to User.

@param Exercise $exercise
@param Paper    $paper

@return bool
Check if the score of the Paper is available to User .