@@ -103,15 +103,15 @@ + (NSDictionary *)findCommandParametersWithOrder:(NSString *)order
103103 tracingEnabled : (BOOL )trace {
104104 NSMutableDictionary *parameters = [NSMutableDictionary dictionary ];
105105
106- if ([ order length ] ) {
106+ if (order. length ) {
107107 parameters[@" order" ] = order;
108108 }
109109 if (selectedKeys) {
110110 NSArray *sortDescriptors = @[ [NSSortDescriptor sortDescriptorWithKey: @" self" ascending: YES selector: @selector (compare: )] ];
111111 NSArray *keysArray = [selectedKeys sortedArrayUsingDescriptors: sortDescriptors];
112112 parameters[@" keys" ] = [keysArray componentsJoinedByString: @" ," ];
113113 }
114- if ([ includedKeys count ] > 0 ) {
114+ if (includedKeys. count > 0 ) {
115115 NSArray *sortDescriptors = @[ [NSSortDescriptor sortDescriptorWithKey: @" self" ascending: YES selector: @selector (compare: )] ];
116116 NSArray *keysArray = [includedKeys sortedArrayUsingDescriptors: sortDescriptors];
117117 parameters[@" include" ] = [keysArray componentsJoinedByString: @" ," ];
@@ -130,7 +130,7 @@ + (NSDictionary *)findCommandParametersWithOrder:(NSString *)order
130130 parameters[key] = obj;
131131 }];
132132
133- if ([ conditions count ] > 0 ) {
133+ if (conditions. count > 0 ) {
134134 NSMutableDictionary *whereData = [[NSMutableDictionary alloc ] init ];
135135 [conditions enumerateKeysAndObjectsUsingBlock: ^(id key, id obj, BOOL *stop) {
136136 if ([key isEqualToString: @" $or" ]) {
@@ -154,7 +154,7 @@ + (NSDictionary *)findCommandParametersWithOrder:(NSString *)order
154154 tracingEnabled: NO ];
155155
156156 queryDict = queryDict[@" where" ];
157- if ([ queryDict count ] > 0 ) {
157+ if (queryDict. count > 0 ) {
158158 [newArray addObject: queryDict];
159159 } else {
160160 [newArray addObject: @{}];
0 commit comments