/** * @return $this */ public function stopOnFail() { if (!$this->wasSuccessful()) { $resultPrinter = Robo::resultPrinter(); if ($resultPrinter) { $resultPrinter->printStopOnFail($this); } $this->exitEarly($this->getExitCode()); } return $this; }