src/ORM/Connect/DBConnector.php
protected function isQueryType($sql, $type)
    {
        if (!preg_match('/^(?<operation>\w+)\b/', $sql, $matches)) {
            return false;
        }
        $operation = $matches['operation'];
        if (is_array($type)) {
            return in_array(strtolower($operation), $type);
        } else {
            return strcasecmp($sql, $type) === 0;
        }
    }
protected function isQueryType($sql, $type)
    {
        if (!preg_match('/^(?<operation>\w+)\b/', $sql, $matches)) {
            return false;
        }
        $operation = $matches['operation'];
        if (is_array($type)) {
            return in_array(strtolower($operation), $type);
        } else {
            return strcasecmp($sql, $type) === 0;
        }
    }
protected function isQueryType ( $ sql , $ type ) { if ( ! preg_match ( '/^(?<operation>\w+)\b/' , $ sql , $ matches ) ) { return false ; } $ operation = $ matches [ 'operation' ] ; if ( is_array ( $ type ) ) { return in_array ( strtolower ( $ operation ) , $ type ) ; } else { return strcasecmp ( $ sql , $ type ) === 0 ; } }
Determine if a query is of the given type

@param string $sql Raw SQL
@param string|array $type Type or list of types (first word in the query). Must be lowercase
@return bool
Determine if a query is of the given type