MathiasGrimm\LaravelDotEnvGen\DotEnvGenCommand::showResults PHP Method

showResults() protected method

protected showResults ( )
    protected function showResults()
    {
        $table = new Table($this->output);
        $table->setHeaders(['Name', 'In .env', 'In source', 'Default']);
        $rows = [];
        foreach ($this->all as $key => $val) {
            $row = [$key];
            if (array_key_exists($key, $this->defined)) {
                $row[] = 'Yes';
            } else {
                $row[0] = "<question>{$key}</question>";
                $row[] = '<error>No</error>';
            }
            if (array_key_exists($key, $this->found)) {
                $row[] = 'Yes';
            } else {
                $row[0] = "<question>{$key}</question>";
                $row[] = '<comment>No</comment>';
            }
            $row[] = array_get($this->defaults, $key);
            $rows[] = $row;
        }
        $table->setRows($rows);
        $table->render();
    }