diff --git a/src/Console/LaraLensCommand.php b/src/Console/LaraLensCommand.php index bd76f66..2deef7c 100644 --- a/src/Console/LaraLensCommand.php +++ b/src/Console/LaraLensCommand.php @@ -91,7 +91,7 @@ private function printOutput(array $headers, array $rows) foreach ($rowsLine as $key => $line) { $label = Arr::get($line, "label", ""); $value = Arr::get($line, "value", ""); - $lineType = Arr::get($row, "lineType", ResultLens::LINE_TYPE_DEFAULT); + $lineType = Arr::get($line, "lineType", ResultLens::LINE_TYPE_DEFAULT); if ($label != "") { $this->info($label . ":"); } @@ -195,6 +195,7 @@ public function handle() $op = $this->argument("op"); $checkTable = $this->option("table"); $styleTable = $this->option("style"); + $show = self::OPTION_SHOW_NONE; if (in_array($styleTable, explode("|", self::TABLE_STYLES))) { $this->styleTable = $styleTable; } else { diff --git a/src/Lens/LaraHttp.php b/src/Lens/LaraHttp.php index a0fd1a1..3a25779 100644 --- a/src/Lens/LaraHttp.php +++ b/src/Lens/LaraHttp.php @@ -16,6 +16,7 @@ public static function get($url) $response = new LaraHttpResponse($client->get($url)); } catch (GuzzleException $e) { $response = null; + throw $e; } return $response; } diff --git a/src/Lens/Traits/FilesystemLens.php b/src/Lens/Traits/FilesystemLens.php index 3a17f51..3232c25 100644 --- a/src/Lens/Traits/FilesystemLens.php +++ b/src/Lens/Traits/FilesystemLens.php @@ -5,10 +5,13 @@ use HiFolks\LaraLens\ResultLens; use Illuminate\Support\Facades\App; + trait FilesystemLens { public function checkFiles() { + + $results = new ResultLens(); $envExists = file_exists(App::environmentFilePath()); if ($envExists) {