Exemplo n.º 1
0
 /**
  * Shorthand for sending output to stdout and appending to log buffer at the same time.
  *
  * @param string $output
  * @param string $eol
  */
 public function say($output = '', $eol = PHP_EOL)
 {
     if (is_array($output)) {
         $output = join(',', $output);
     }
     $this->logOutput .= $output . $eol;
     switch ($output) {
         case 'SUCCESS':
             $output = $this->color->green($output);
             $output = $this->color->bold($output);
             break;
         case 'NOT FOUND':
         case 'INVALID URL':
             $output = $this->color->red($output);
             $output = $this->color->bold($output);
             break;
         default:
             break;
     }
     echo $output . $eol;
 }