src/Rocketeer/Services/Connections/Shell/Modules/Statuses.php
public function displayStatusMessage($error, $output = null, $success = null)
    {
        // If all went well
        if ($this->checkResults($output)) {
            if ($success) {
                $this->explainer->success($success);
            }

            return $output || true;
        }

        // Else display the error
        $error = sprintf('An error occured: "%s"', $error);
        if ($output) {
            $error .= ', while running:'.PHP_EOL.$output;
        }

        $this->explainer->error($error);

        return false;
    }
public function displayStatusMessage($error, $output = null, $success = null)
    {
        // If all went well
        if ($this->checkResults($output)) {
            if ($success) {
                $this->explainer->success($success);
            }

            return $output || true;
        }

        // Else display the error
        $error = sprintf('An error occured: "%s"', $error);
        if ($output) {
            $error .= ', while running:'.PHP_EOL.$output;
        }

        $this->explainer->error($error);

        return false;
    }
public function displayStatusMessage ( $ error , $ output = null , $ success = null ) { // If all went well if ( $ this -> checkResults ( $ output ) ) { if ( $ success ) { $ this -> explainer -> success ( $ success ) ; } return $ output || true ; } // Else display the error $ error = sprintf ( 'An error occured: "%s"' , $ error ) ; if ( $ output ) { $ error .= ', while running:' . PHP_EOL . $ output ; } $ this -> explainer -> error ( $ error ) ; return false ; }
Check the status of the last run command, return an error if any.

@param string      $error   The message to display on error
@param string|null $output  The command's output
@param string|null $success The message to display on success

@return bool
Check the status of the last run command return an error if any .