@@ -145,7 +145,9 @@ discard block |
||
145 | 145 | // q: when getting a query via QueryType, should we always inject offset/limit? |
146 | 146 | $query->limit = $limit != 0 ? $limit : $this->queryLimit; |
147 | 147 | $query->offset = $offset; |
148 | - if (isset($query->performCount)) $query->performCount = false; |
|
148 | + if (isset($query->performCount)) { |
|
149 | + $query->performCount = false; |
|
150 | + } |
|
149 | 151 | if (!empty($sort)) { |
150 | 152 | $query->sortClauses = $this->getSortClauses($sort); |
151 | 153 | } else { |
@@ -271,7 +273,9 @@ discard block |
||
271 | 273 | { |
272 | 274 | $query = new Query(); |
273 | 275 | $query->limit = $this->queryLimit; |
274 | - if (isset($query->performCount)) $query->performCount = false; |
|
276 | + if (isset($query->performCount)) { |
|
277 | + $query->performCount = false; |
|
278 | + } |
|
275 | 279 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); |
276 | 280 | $results = $this->getSearchService()->findContent($query); |
277 | 281 | |
@@ -311,7 +315,9 @@ discard block |
||
311 | 315 | { |
312 | 316 | $query = new Query(); |
313 | 317 | $query->limit = $this->queryLimit; |
314 | - if (isset($query->performCount)) $query->performCount = false; |
|
318 | + if (isset($query->performCount)) { |
|
319 | + $query->performCount = false; |
|
320 | + } |
|
315 | 321 | $query->filter = new Query\Criterion\ContentTypeIdentifier($contentTypeIdentifiers); |
316 | 322 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure |
317 | 323 | // NB: we only do this in eZP versions that allow depth sorting on content queries |
@@ -339,7 +345,9 @@ discard block |
||
339 | 345 | { |
340 | 346 | $query = new Query(); |
341 | 347 | $query->limit = $this->queryLimit; |
342 | - if (isset($query->performCount)) $query->performCount = false; |
|
348 | + if (isset($query->performCount)) { |
|
349 | + $query->performCount = false; |
|
350 | + } |
|
343 | 351 | $query->filter = new Query\Criterion\ContentTypeId($contentTypeIds); |
344 | 352 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure |
345 | 353 | // NB: we only do this in eZP versions that allow depth sorting on content queries |
@@ -107,7 +107,9 @@ discard block |
||
107 | 107 | if (!empty($sort)) { |
108 | 108 | $query->sortClauses = $this->getSortClauses($sort); |
109 | 109 | } |
110 | - if (isset($query->performCount)) $query->performCount = false; |
|
110 | + if (isset($query->performCount)) { |
|
111 | + $query->performCount = false; |
|
112 | + } |
|
111 | 113 | |
112 | 114 | $results = $this->getSearchService()->findLocations($query); |
113 | 115 | |
@@ -254,7 +256,9 @@ discard block |
||
254 | 256 | { |
255 | 257 | $query = new LocationQuery(); |
256 | 258 | $query->limit = self::INT_MAX_16BIT; |
257 | - if (isset($query->performCount)) $query->performCount = false; |
|
259 | + if (isset($query->performCount)) { |
|
260 | + $query->performCount = false; |
|
261 | + } |
|
258 | 262 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); |
259 | 263 | |
260 | 264 | $results = $this->getSearchService()->findLocations($query); |