library/Garp/Controller/Helper/CanonicalUrl.php
public function validateOrRedirect($canonical) {
        if (!$this->validate($canonical)) {
            $this->redirect($canonical);
            return false;
        }
        return true;
    }
public function validateOrRedirect($canonical) {
        if (!$this->validate($canonical)) {
            $this->redirect($canonical);
            return false;
        }
        return true;
    }
public function validateOrRedirect ( $ canonical ) { if ( ! $ this -> validate ( $ canonical ) ) { $ this -> redirect ( $ canonical ) ; return false ; } return true ; }
Helper method that combines validating and redirecting
@param String $canonical
@return Boolean
Helper method that combines validating and redirecting