@@ -44,7 +44,7 @@ class Query implements \JsonSerializable
44
44
*/
45
45
public static function equal (string $attribute , $value ): string
46
46
{
47
- return new Query (' equal' , $attribute , $value ). __toString();
47
+ return ( new Query (' equal' , $attribute , $value )) -> __toString();
48
48
}
49
49
50
50
/**
@@ -56,7 +56,7 @@ class Query implements \JsonSerializable
56
56
*/
57
57
public static function notEqual (string $attribute , $value ): string
58
58
{
59
- return new Query (' notEqual' , $attribute , $value ). __toString();
59
+ return ( new Query (' notEqual' , $attribute , $value )) -> __toString();
60
60
}
61
61
62
62
/**
@@ -68,7 +68,7 @@ class Query implements \JsonSerializable
68
68
*/
69
69
public static function lessThan (string $attribute , $value ): string
70
70
{
71
- return new Query (' lessThan' , $attribute , $value ). __toString();
71
+ return ( new Query (' lessThan' , $attribute , $value )) -> __toString();
72
72
}
73
73
74
74
/**
@@ -80,7 +80,7 @@ class Query implements \JsonSerializable
80
80
*/
81
81
public static function lessThanEqual (string $attribute , $value ): string
82
82
{
83
- return new Query (' lessThanEqual' , $attribute , $value ). __toString();
83
+ return ( new Query (' lessThanEqual' , $attribute , $value )) -> __toString();
84
84
}
85
85
86
86
/**
@@ -92,7 +92,7 @@ class Query implements \JsonSerializable
92
92
*/
93
93
public static function greaterThan (string $attribute , $value ): string
94
94
{
95
- return new Query (' greaterThan' , $attribute , $value ). __toString();
95
+ return ( new Query (' greaterThan' , $attribute , $value )) -> __toString();
96
96
}
97
97
98
98
/**
@@ -104,7 +104,7 @@ class Query implements \JsonSerializable
104
104
*/
105
105
public static function greaterThanEqual (string $attribute , $value ): string
106
106
{
107
- return new Query (' greaterThanEqual' , $attribute , $value ). __toString();
107
+ return ( new Query (' greaterThanEqual' , $attribute , $value )) -> __toString();
108
108
}
109
109
110
110
/**
@@ -116,7 +116,7 @@ class Query implements \JsonSerializable
116
116
*/
117
117
public static function search (string $attribute , string $value ): string
118
118
{
119
- return new Query (' search' , $attribute , $value ). __toString();
119
+ return ( new Query (' search' , $attribute , $value )) -> __toString();
120
120
}
121
121
122
122
/**
@@ -127,7 +127,7 @@ class Query implements \JsonSerializable
127
127
*/
128
128
public static function isNull (string $attribute ): string
129
129
{
130
- return new Query (' isNull' , $attribute , null ). __toString();
130
+ return ( new Query (' isNull' , $attribute , null )) -> __toString();
131
131
}
132
132
133
133
/**
@@ -138,7 +138,7 @@ class Query implements \JsonSerializable
138
138
*/
139
139
public static function isNotNull (string $attribute ): string
140
140
{
141
- return new Query (' isNotNull' , $attribute , null ). __toString();
141
+ return ( new Query (' isNotNull' , $attribute , null )) -> __toString();
142
142
}
143
143
144
144
/**
@@ -151,7 +151,7 @@ class Query implements \JsonSerializable
151
151
*/
152
152
public static function between (string $attribute , $start , $end ): string
153
153
{
154
- return new Query (' between' , $attribute , [$start , $end ]). __toString();
154
+ return ( new Query (' between' , $attribute , [$start , $end ])) -> __toString();
155
155
}
156
156
157
157
/**
@@ -163,7 +163,7 @@ class Query implements \JsonSerializable
163
163
*/
164
164
public static function startsWith (string $attribute , string $value ): string
165
165
{
166
- return new Query (' startsWith' , $attribute , $value ). __toString();
166
+ return ( new Query (' startsWith' , $attribute , $value )) -> __toString();
167
167
}
168
168
169
169
/**
@@ -175,7 +175,7 @@ class Query implements \JsonSerializable
175
175
*/
176
176
public static function endsWith (string $attribute , string $value ): string
177
177
{
178
- return new Query (' endsWith' , $attribute , $value ). __toString();
178
+ return ( new Query (' endsWith' , $attribute , $value )) -> __toString();
179
179
}
180
180
181
181
/**
@@ -186,7 +186,7 @@ class Query implements \JsonSerializable
186
186
*/
187
187
public static function select (array $attributes ): string
188
188
{
189
- return new Query (' select' , null , $attributes ). __toString();
189
+ return ( new Query (' select' , null , $attributes )) -> __toString();
190
190
}
191
191
192
192
/**
@@ -197,7 +197,7 @@ class Query implements \JsonSerializable
197
197
*/
198
198
public static function cursorAfter (string $documentId ): string
199
199
{
200
- return new Query (' cursorAfter' , null , $documentId ). __toString();
200
+ return ( new Query (' cursorAfter' , null , $documentId )) -> __toString();
201
201
}
202
202
203
203
/**
@@ -208,7 +208,7 @@ class Query implements \JsonSerializable
208
208
*/
209
209
public static function cursorBefore (string $documentId ): string
210
210
{
211
- return new Query (' cursorBefore' , null , $documentId ). __toString();
211
+ return ( new Query (' cursorBefore' , null , $documentId )) -> __toString();
212
212
}
213
213
214
214
/**
@@ -219,7 +219,7 @@ class Query implements \JsonSerializable
219
219
*/
220
220
public static function orderAsc (string $attribute ): string
221
221
{
222
- return new Query (' orderAsc' , $attribute , null ). __toString();
222
+ return ( new Query (' orderAsc' , $attribute , null )) -> __toString();
223
223
}
224
224
225
225
/**
@@ -230,7 +230,7 @@ class Query implements \JsonSerializable
230
230
*/
231
231
public static function orderDesc (string $attribute ): string
232
232
{
233
- return new Query (' orderDesc' , $attribute , null ). __toString();
233
+ return ( new Query (' orderDesc' , $attribute , null )) -> __toString();
234
234
}
235
235
236
236
/**
@@ -241,7 +241,7 @@ class Query implements \JsonSerializable
241
241
*/
242
242
public static function limit (int $limit ): string
243
243
{
244
- return new Query (' limit' , null , $limit ). __toString();
244
+ return ( new Query (' limit' , null , $limit )) -> __toString();
245
245
}
246
246
247
247
/**
@@ -252,7 +252,7 @@ class Query implements \JsonSerializable
252
252
*/
253
253
public static function offset (int $offset ): string
254
254
{
255
- return new Query (' offset' , null , $offset ). __toString();
255
+ return ( new Query (' offset' , null , $offset )) -> __toString();
256
256
}
257
257
258
258
/**
@@ -264,7 +264,7 @@ class Query implements \JsonSerializable
264
264
*/
265
265
public static function contains (string $attribute , string $value ): string
266
266
{
267
- return new Query (' contains' , $attribute , $value ). __toString();
267
+ return ( new Query (' contains' , $attribute , $value )) -> __toString();
268
268
}
269
269
270
270
/**
@@ -278,7 +278,7 @@ class Query implements \JsonSerializable
278
278
foreach ($queries as & $query ) {
279
279
$query = \json_decode ($query , true );
280
280
}
281
- return new Query (' or' , null , $queries ). __toString();
281
+ return ( new Query (' or' , null , $queries )) -> __toString();
282
282
}
283
283
284
284
/**
@@ -292,6 +292,6 @@ class Query implements \JsonSerializable
292
292
foreach ($queries as & $query ) {
293
293
$query = \json_decode ($query , true );
294
294
}
295
- return new Query (' and' , null , $queries ). __toString();
295
+ return ( new Query (' and' , null , $queries )) -> __toString();
296
296
}
297
297
}
0 commit comments