private function isChangePositionLine(string $line): bool
    {
        $matches = [];
        if (preg_match('#^@@ (\-[0-9,]{3,} \+[0-9,]{3,}) @@ ?(.*)$#', $line, $matches)) {
            $this->currentPosition                        = $matches[1];
            $this->currentChanges[$this->currentPosition] = new Change($matches[1], $matches[2]);
            return true;
        }
        return false;
    }
private function isChangePositionLine(string $line): bool
    {
        $matches = [];
        if (preg_match('#^@@ (\-[0-9,]{3,} \+[0-9,]{3,}) @@ ?(.*)$#', $line, $matches)) {
            $this->currentPosition                        = $matches[1];
            $this->currentChanges[$this->currentPosition] = new Change($matches[1], $matches[2]);
            return true;
        }
        return false;
    }
private function isChangePositionLine ( string $ line ) : bool { $ matches = [ ] ; if ( preg_match ( '#^@@ (\-[0-9,]{3,} \+[0-9,]{3,}) @@ ?(.*)$#' , $ line , $ matches ) ) { $ this -> currentPosition = $ matches [ 1 ] ; $ this -> currentChanges [ $ this -> currentPosition ] = new Change ( $ matches [ 1 ] , $ matches [ 2 ] ) ; return true ; } return false ; }
Is the given line a diff change position line.

@@ -4,3 +4,10 @@ some file hint

@param  string $line
@return bool
Is the given line a diff change position line .