src/Parser/ServerParse.php
public static function beginCheck(string $stmt, int $offset)
    {
        if (strlen($stmt) > $offset + 4) {
            $c1 = $stmt[++$offset];
            $c2 = $stmt[++$offset];
            $c3 = $stmt[++$offset];
            $c4 = $stmt[++$offset];
            if (($c1 == 'E' || $c1 == 'e')
                && ($c2 == 'G' || $c2 == 'g')
                && ($c3 == 'I' || $c3 == 'i')
                && ($c4 == 'N' || $c4 == 'n')
                && (strlen($stmt) == ++$offset || ParseUtil::isEOF($stmt[$offset]))) {
                return self::BEGIN;
            }
        }
        return self::OTHER;
    }
public static function beginCheck(string $stmt, int $offset)
    {
        if (strlen($stmt) > $offset + 4) {
            $c1 = $stmt[++$offset];
            $c2 = $stmt[++$offset];
            $c3 = $stmt[++$offset];
            $c4 = $stmt[++$offset];
            if (($c1 == 'E' || $c1 == 'e')
                && ($c2 == 'G' || $c2 == 'g')
                && ($c3 == 'I' || $c3 == 'i')
                && ($c4 == 'N' || $c4 == 'n')
                && (strlen($stmt) == ++$offset || ParseUtil::isEOF($stmt[$offset]))) {
                return self::BEGIN;
            }
        }
        return self::OTHER;
    }
BEGIN