src/Rocketeer/Traits/Properties/HasEventsTrait.php
public function halt($errors = null)
    {
        // Display errors
        if ($errors) {
            $this->explainer->error($errors);
        }

        $this->fireEvent('halt');
        $this->halted = true;

        if ($this->event) {
            $this->getEvent()->stopPropagation();
        }

        return false;
    }
public function halt($errors = null)
    {
        // Display errors
        if ($errors) {
            $this->explainer->error($errors);
        }

        $this->fireEvent('halt');
        $this->halted = true;

        if ($this->event) {
            $this->getEvent()->stopPropagation();
        }

        return false;
    }
public function halt ( $ errors = null ) { // Display errors if ( $ errors ) { $ this -> explainer -> error ( $ errors ) ; } $ this -> fireEvent ( 'halt' ) ; $ this -> halted = true ; if ( $ this -> event ) { $ this -> getEvent ( ) -> stopPropagation ( ) ; } return false ; }
Cancel the task.

@param string|null $errors Potential errors to display

@return bool
Cancel the task .