private function generateKeys()
    {
        $content = [];
        for ($i = 0; $i < count($this->keys); $i++) {
            $holder = [];
            $value = !$this->option($this->keys[$i]) || $this->option($this->keys[$i]) === 'generate' ? str_random(64) : $this->option($this->keys[$i]);
            $holder['regex'] = str_replace_first($this->findRegExPlaceholder, $this->keys[$i], $this->findRegEx);
            $holder['value'] = $this->keys[$i] . '="' . $value . '"';
            array_push($content, $holder);
        }

        return $content;
    }
private function generateKeys()
    {
        $content = [];
        for ($i = 0; $i < count($this->keys); $i++) {
            $holder = [];
            $value = !$this->option($this->keys[$i]) || $this->option($this->keys[$i]) === 'generate' ? str_random(64) : $this->option($this->keys[$i]);
            $holder['regex'] = str_replace_first($this->findRegExPlaceholder, $this->keys[$i], $this->findRegEx);
            $holder['value'] = $this->keys[$i] . '="' . $value . '"';
            array_push($content, $holder);
        }

        return $content;
    }
private function generateKeys ( ) { $ content = [ ] ; for ( $ i = 0 ; $ i < count ( $ this -> keys ) ; $ i ++ ) { $ holder = [ ] ; $ value = ! $ this -> option ( $ this -> keys [ $ i ] ) || $ this -> option ( $ this -> keys [ $ i ] ) === 'generate' ? str_random ( 64 ) : $ this -> option ( $ this -> keys [ $ i ] ) ; $ holder [ 'regex' ] = str_replace_first ( $ this -> findRegExPlaceholder , $ this -> keys [ $ i ] , $ this -> findRegEx ) ; $ holder [ 'value' ] = $ this -> keys [ $ i ] . '="' . $ value . '"' ; array_push ( $ content , $ holder ) ; } return $ content ; }
Generate regex used for replacing the key value in the env file and
the value that should be used in place
@return array
Generate regex used for replacing the key value in the env file and the value that should be used in place