private static function inPast($step, CheckoutStepController $controller)
    {
        $currentStep = $controller->getURLParams()['Action'];
        return self::getStepIndex($step) < self::getStepIndex($currentStep);
    }
private static function inPast($step, CheckoutStepController $controller)
    {
        $currentStep = $controller->getURLParams()['Action'];
        return self::getStepIndex($step) < self::getStepIndex($currentStep);
    }
private static function inPast ( $ step , CheckoutStepController $ controller ) { $ currentStep = $ controller -> getURLParams ( ) [ 'Action' ] ; return self :: getStepIndex ( $ step ) < self :: getStepIndex ( $ currentStep ) ; }
Check if the step is in the past

@param                        $step
@param CheckoutStepController $controller

@return bool
Check if the step is in the past