public static function quoteUrl($query) {
        $queryParts = explode(' ', Str::assert($query, 'query'));

        return trim(array_reduce($queryParts, function($carry, $part) {
            return $carry . (Url::is($part) ? ('"' . $part . '" ') : ($part . ' '));
        }));
    }
public static function quoteUrl($query) {
        $queryParts = explode(' ', Str::assert($query, 'query'));

        return trim(array_reduce($queryParts, function($carry, $part) {
            return $carry . (Url::is($part) ? ('"' . $part . '" ') : ($part . ' '));
        }));
    }
public static function quoteUrl ( $ query ) { $ queryParts = explode ( ' ' , Str :: assert ( $ query , 'query' ) ) ; return trim ( array_reduce ( $ queryParts , function ( $ carry , $ part ) { return $ carry . ( Url :: is ( $ part ) ? ( '"' . $ part . '" ' ) : ( $ part . ' ' ) ) ; } ) ) ; }
quotes the table if it's an url

@param  string $query
@return string
@throws InvalidTypeException
@throws NotNilException

@SuppressWarnings("PHPMD.StaticAccess")
quotes the table if it s an url