Sync/DiffProvider/Binlog/BinlogParser.php
protected function handleStatement($line, $type)
    {
        if (!preg_match("/^{$type}$/", $line)) {
            throw new \UnexpectedValueException("Expected a {$type} statement, got {$line}");
        }

        $params = [];
        $param = $this->handleParam();

        while ($param !== null) {
            $params = $params + $param;
            $param = $this->handleParam();
        }

        return $params;
    }
protected function handleStatement($line, $type)
    {
        if (!preg_match("/^{$type}$/", $line)) {
            throw new \UnexpectedValueException("Expected a {$type} statement, got {$line}");
        }

        $params = [];
        $param = $this->handleParam();

        while ($param !== null) {
            $params = $params + $param;
            $param = $this->handleParam();
        }

        return $params;
    }
Handle SQL relations.

@param string $line
@param string $type

@throws \UnexpectedValueException
@return array|null