@@ -56,7 +56,9 @@ |
||
| 56 | 56 | |
| 57 | 57 | $query = new Query(); |
| 58 | 58 | $query->limit = $this->queryLimit; |
| 59 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 59 | + if (isset($query->performCount)) { |
|
| 60 | + $query->performCount = false; |
|
| 61 | + } |
|
| 60 | 62 | $query->filter = $this->getQueryCriterion($key, $values); |
| 61 | 63 | $results = $this->repository->getTrashService()->findTrashItems($query); |
| 62 | 64 | |
@@ -119,7 +119,9 @@ discard block |
||
| 119 | 119 | $query = new Query(); |
| 120 | 120 | $query->limit = $limit != 0 ? $limit : $this->queryLimit; |
| 121 | 121 | $query->offset = $offset; |
| 122 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 122 | + if (isset($query->performCount)) { |
|
| 123 | + $query->performCount = false; |
|
| 124 | + } |
|
| 123 | 125 | $query->filter = $this->getQueryCriterion($key, $values); |
| 124 | 126 | if (!empty($sort)) { |
| 125 | 127 | $query->sortClauses = $this->getSortClauses($sort); |
@@ -245,7 +247,9 @@ discard block |
||
| 245 | 247 | { |
| 246 | 248 | $query = new Query(); |
| 247 | 249 | $query->limit = $this->queryLimit; |
| 248 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 250 | + if (isset($query->performCount)) { |
|
| 251 | + $query->performCount = false; |
|
| 252 | + } |
|
| 249 | 253 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); |
| 250 | 254 | $results = $this->repository->getSearchService()->findContent($query); |
| 251 | 255 | |
@@ -285,7 +289,9 @@ discard block |
||
| 285 | 289 | { |
| 286 | 290 | $query = new Query(); |
| 287 | 291 | $query->limit = $this->queryLimit; |
| 288 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 292 | + if (isset($query->performCount)) { |
|
| 293 | + $query->performCount = false; |
|
| 294 | + } |
|
| 289 | 295 | $query->filter = new Query\Criterion\ContentTypeIdentifier($contentTypeIdentifiers); |
| 290 | 296 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure |
| 291 | 297 | // NB: we only do this in eZP versions that allow depth sorting on content queries |
@@ -313,7 +319,9 @@ discard block |
||
| 313 | 319 | { |
| 314 | 320 | $query = new Query(); |
| 315 | 321 | $query->limit = $this->queryLimit; |
| 316 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 322 | + if (isset($query->performCount)) { |
|
| 323 | + $query->performCount = false; |
|
| 324 | + } |
|
| 317 | 325 | $query->filter = new Query\Criterion\ContentTypeId($contentTypeIds); |
| 318 | 326 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure |
| 319 | 327 | // NB: we only do this in eZP versions that allow depth sorting on content queries |