예제 #1
0
 /**
  * Output the result.
  *
  * @param string $path
  * @param array $results
  */
 protected function outputResult($path, $results)
 {
     if ('stdout' === $path) {
         $this->console->border();
         $this->outputToConsole($results);
     } else {
         if (!ends_with($path, '/')) {
             $path = $path . '/';
         }
         file_put_contents($path . 'result.json', json_encode($results));
     }
 }
예제 #2
0
 /**
  * Draw a border
  * @see http://climate.thephpleague.com/terminal-objects/border/
  *
  * @param  string $char   Border character
  * @param  int    $length Border length
  * @return mixed
  */
 public function border($char = null, $length = null)
 {
     return $this->climate->border($char, $length);
 }