src/Core/Console/PluginInstallCommand.php
protected function parseLine(string $line, array $headers)
    {
        foreach ($this->headers as $field => $regex) {
            if (preg_match('/^[ \t\/*#@]*'.preg_quote($regex, '/').':(.*)$/mi', $line, $match)
                && $match[0]
                && isset($headers[$field])) {
                return preg_replace('/:\s?+.+\s?+/', ': '.$headers[$field], $match[0])."\n";
            }
        }

        return $line;
    }
protected function parseLine(string $line, array $headers)
    {
        foreach ($this->headers as $field => $regex) {
            if (preg_match('/^[ \t\/*#@]*'.preg_quote($regex, '/').':(.*)$/mi', $line, $match)
                && $match[0]
                && isset($headers[$field])) {
                return preg_replace('/:\s?+.+\s?+/', ': '.$headers[$field], $match[0])."\n";
            }
        }

        return $line;
    }
protected function parseLine ( string $ line , array $ headers ) { foreach ( $ this -> headers as $ field => $ regex ) { if ( preg_match ( '/^[ \t\/*#@]*' . preg_quote ( $ regex , '/' ) . ':(.*)$/mi' , $ line , $ match ) && $ match [ 0 ] && isset ( $ headers [ $ field ] ) ) { return preg_replace ( '/:\s?+.+\s?+/' , ': ' . $ headers [ $ field ] , $ match [ 0 ] ) . "\n" ; } } return $ line ; }
Parse file header line.

@param string $line
@param array  $headers

@return string
Parse file header line .