protected function findLine($key)
    {
        $parsedKey   = null;
        $parsedValue = null;

        foreach ($this->lines as $index => $line) {
            $parseOk = $this->parseEnvLine($line, $parsedKey, $parsedValue);
            if ($parseOk && $key === $parsedKey) {
                return $index;
            }
        }

        return -1;
    }
protected function findLine($key)
    {
        $parsedKey   = null;
        $parsedValue = null;

        foreach ($this->lines as $index => $line) {
            $parseOk = $this->parseEnvLine($line, $parsedKey, $parsedValue);
            if ($parseOk && $key === $parsedKey) {
                return $index;
            }
        }

        return -1;
    }
protected function findLine ( $ key ) { $ parsedKey = null ; $ parsedValue = null ; foreach ( $ this -> lines as $ index => $ line ) { $ parseOk = $ this -> parseEnvLine ( $ line , $ parsedKey , $ parsedValue ) ; if ( $ parseOk && $ key === $ parsedKey ) { return $ index ; } } return - 1 ; }
Finds the line containing the given key.

@param  string $key the key.
@return integer the line index > 0, otherwise -1.
Finds the line containing the given key .