public function countPercent($currentStep, $maxStep)
    {
        $percent = $maxStep ? round(100 * $currentStep / $maxStep) : 0;
        if ($percent > 100) {
            $percent = 100;
        }
        if ($percent == 100 && $currentStep != $maxStep) {
            $percent = 99;
        }
        if ($percent == 100) {
            $this->clearCache();
        }
        return $percent;
    }
public function countPercent($currentStep, $maxStep)
    {
        $percent = $maxStep ? round(100 * $currentStep / $maxStep) : 0;
        if ($percent > 100) {
            $percent = 100;
        }
        if ($percent == 100 && $currentStep != $maxStep) {
            $percent = 99;
        }
        if ($percent == 100) {
            $this->clearCache();
        }
        return $percent;
    }
public function countPercent ( $ currentStep , $ maxStep ) { $ percent = $ maxStep ? round ( 100 * $ currentStep / $ maxStep ) : 0 ; if ( $ percent > 100 ) { $ percent = 100 ; } if ( $ percent == 100 && $ currentStep != $ maxStep ) { $ percent = 99 ; } if ( $ percent == 100 ) { $ this -> clearCache ( ) ; } return $ percent ; }
Returns percent.
Clears cache at 100.
@param int $currentStep
@param int $maxStep
@return int
@since 0.2
Returns percent . Clears cache at 100 .