/**
  * Prints hook call output (if has some).
  *
  * @param OutputPrinter $printer
  * @param CallResult    $callResult
  * @param string        $indentText
  */
 private function printHookCallStdOut(OutputPrinter $printer, CallResult $callResult, $indentText)
 {
     if (!$callResult->hasStdOut()) {
         return;
     }
     $pad = function ($line) use($indentText) {
         return sprintf('%s│  {+stdout}%s{-stdout}', $indentText, $line);
     };
     $printer->writeln(implode("\n", array_map($pad, explode("\n", $callResult->getStdOut()))));
     $printer->writeln(sprintf('%s│', $indentText));
 }
 /**
  * Captures hook call result.
  *
  * @param CallResult $hookCallResult
  */
 private function captureHookStat(CallResult $hookCallResult)
 {
     $callee = $hookCallResult->getCall()->getCallee();
     $hook = (string) $callee;
     $path = $callee->getPath();
     $stdOut = $hookCallResult->getStdOut();
     $error = $hookCallResult->getException() ? $this->exceptionPresenter->presentException($hookCallResult->getException()) : null;
     $stat = new HookStat($hook, $path, $error, $stdOut);
     $this->statistics->registerHookStat($stat);
 }
 public function getStdOut()
 {
     return $this->callResult->getStdOut();
 }