MathiasGrimm\LaravelDotEnvGen\DotEnvGenCommand::scanEnv PHP Метод

scanEnv() защищенный Метод

protected scanEnv ( )
    protected function scanEnv()
    {
        $this->info('Scanning `.env` file...');
        if (!file_exists(base_path('.env'))) {
            return;
        }
        foreach (file(base_path('.env')) as $line) {
            if (strpos(trim($line), '#') === 0 || strpos($line, '=') === false) {
                continue;
            }
            list($name, $value) = array_map('trim', explode('=', $line, 2));
            $this->defined[$name] = $value;
        }
    }