Sync/DiffProvider/Binlog/BinlogParser.php
protected function handleStart($line)
    {
        if (preg_match('/^(INSERT INTO|UPDATE|DELETE FROM)\s+`?(.*?)`?\.`?(.*?)`?$/', $line, $part)) {
            return [
                'type' => $this->detectQueryType($part[1]),
                'table' => $part[3],
            ];
        }

        throw new \UnexpectedValueException("Expected a statement, got {$line}");
    }
protected function handleStart($line)
    {
        if (preg_match('/^(INSERT INTO|UPDATE|DELETE FROM)\s+`?(.*?)`?\.`?(.*?)`?$/', $line, $part)) {
            return [
                'type' => $this->detectQueryType($part[1]),
                'table' => $part[3],
            ];
        }

        throw new \UnexpectedValueException("Expected a statement, got {$line}");
    }
Handles the beginning of a statement.

@param string $line

@throws \UnexpectedValueException
@return array|null