private function isHeaderIndexLine(string $line): bool
    {
        $matches = [];
        if (preg_match('#^index\s([a-z0-9]+)\.\.([a-z0-9]+)(.*)$#i', $line, $matches)) {
            $this->currentFile = new File($this->currentFileName, $this->currentOperation);
            return true;
        }
        return false;
    }
private function isHeaderIndexLine(string $line): bool
    {
        $matches = [];
        if (preg_match('#^index\s([a-z0-9]+)\.\.([a-z0-9]+)(.*)$#i', $line, $matches)) {
            $this->currentFile = new File($this->currentFileName, $this->currentOperation);
            return true;
        }
        return false;
    }
private function isHeaderIndexLine ( string $ line ) : bool { $ matches = [ ] ; if ( preg_match ( '#^index\s([a-z0-9]+)\.\.([a-z0-9]+)(.*)$#i' , $ line , $ matches ) ) { $ this -> currentFile = new File ( $ this -> currentFileName , $ this -> currentOperation ) ; return true ; } return false ; }
Is the given line a diff header index line.

index f7fc435..7b5bd26 100644

@param  string $line
@return bool
Is the given line a diff header index line .