plugin/exo/Manager/Attempt/PaperManager.php
public function checkPaperEvaluated(Paper $paper)
    {
        $fullyEvaluated = $this->repository->isFullyEvaluated($paper);
        if ($fullyEvaluated) {
            $event = new LogExerciseEvaluatedEvent($paper->getExercise(), [
                'result' => $paper->getScore(),
                'resultMax' => $this->calculateTotal($paper),
            ]);

            $this->eventDispatcher->dispatch('log', $event);
        }

        return $fullyEvaluated;
    }
public function checkPaperEvaluated(Paper $paper)
    {
        $fullyEvaluated = $this->repository->isFullyEvaluated($paper);
        if ($fullyEvaluated) {
            $event = new LogExerciseEvaluatedEvent($paper->getExercise(), [
                'result' => $paper->getScore(),
                'resultMax' => $this->calculateTotal($paper),
            ]);

            $this->eventDispatcher->dispatch('log', $event);
        }

        return $fullyEvaluated;
    }
public function checkPaperEvaluated ( Paper $ paper ) { $ fullyEvaluated = $ this -> repository -> isFullyEvaluated ( $ paper ) ; if ( $ fullyEvaluated ) { $ event = new LogExerciseEvaluatedEvent ( $ paper -> getExercise ( ) , [ 'result' => $ paper -> getScore ( ) , 'resultMax' => $ this -> calculateTotal ( $ paper ) , ] ) ; $ this -> eventDispatcher -> dispatch ( 'log' , $ event ) ; } return $ fullyEvaluated ; }
Check if a Paper is full evaluated and dispatch a Log event if yes.

@param Paper $paper

@return bool
Check if a Paper is full evaluated and dispatch a Log event if yes .