plugin/dropzone/Manager/DropzoneManager.php
public function isPeerReviewEndedOrManualStateFinished(Dropzone $dropzone, $nbCorrection)
    {
        $specialCase = false;
        if (($dropzone->getManualPlanning() && Dropzone::MANUAL_STATE_FINISHED === $dropzone->getManualState()) ||
            (!$dropzone->getManualPlanning() && $dropzone->getTimeRemaining($dropzone->getEndReview()) <= 0)
        ) {
            if ($dropzone->getExpectedTotalCorrection() > $nbCorrection) {
                $specialCase = true;
            }
        }

        return $specialCase;
    }
public function isPeerReviewEndedOrManualStateFinished(Dropzone $dropzone, $nbCorrection)
    {
        $specialCase = false;
        if (($dropzone->getManualPlanning() && Dropzone::MANUAL_STATE_FINISHED === $dropzone->getManualState()) ||
            (!$dropzone->getManualPlanning() && $dropzone->getTimeRemaining($dropzone->getEndReview()) <= 0)
        ) {
            if ($dropzone->getExpectedTotalCorrection() > $nbCorrection) {
                $specialCase = true;
            }
        }

        return $specialCase;
    }
public function isPeerReviewEndedOrManualStateFinished ( Dropzone $ dropzone , $ nbCorrection ) { $ specialCase = false ; if ( ( $ dropzone -> getManualPlanning ( ) && Dropzone :: MANUAL_STATE_FINISHED === $ dropzone -> getManualState ( ) ) || ( ! $ dropzone -> getManualPlanning ( ) && $ dropzone -> getTimeRemaining ( $ dropzone -> getEndReview ( ) ) <= 0 ) ) { if ( $ dropzone -> getExpectedTotalCorrection ( ) > $ nbCorrection ) { $ specialCase = true ; } } return $ specialCase ; }
Test to detect the special case where the peerReview end whereas user didnt had time to make the expected
number of correction.

@param Dropzone $dropzone
@param $nbCorrection

@return bool
Test to detect the special case where the peerReview end whereas user didnt had time to make the expected number of correction .