/** * 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)); } }
/** * 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); }