private function findPath(string $line)
    {
        $matches = [];
        if (preg_match('/^diff --git SRC\/(.*) DST\/(.*)$/', $line, $matches)) {
            $this->originalPath = $matches[1];
            $this->destinationPath = $matches[2];
        }
    }
private function findPath(string $line)
    {
        $matches = [];
        if (preg_match('/^diff --git SRC\/(.*) DST\/(.*)$/', $line, $matches)) {
            $this->originalPath = $matches[1];
            $this->destinationPath = $matches[2];
        }
    }
private function findPath ( string $ line ) { $ matches = [ ] ; if ( preg_match ( '/^diff --git SRC\/(.*) DST\/(.*)$/' , $ line , $ matches ) ) { $ this -> originalPath = $ matches [ 1 ] ; $ this -> destinationPath = $ matches [ 2 ] ; } }
look for the path in the line

@param string $line line content
look for the path in the line