@@ -71,7 +71,9 @@ discard block |
||
| 71 | 71 | if (!empty($sort)) { |
| 72 | 72 | $query->sortClauses = $this->getSortClauses($sort); |
| 73 | 73 | } |
| 74 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 74 | + if (isset($query->performCount)) { |
|
| 75 | + $query->performCount = false; |
|
| 76 | + } |
|
| 75 | 77 | $query->filter = $this->getQueryCriterion($key, $values); |
| 76 | 78 | $results = $this->repository->getSearchService()->findLocations($query); |
| 77 | 79 | |
@@ -218,7 +220,9 @@ discard block |
||
| 218 | 220 | { |
| 219 | 221 | $query = new LocationQuery(); |
| 220 | 222 | $query->limit = self::INT_MAX_16BIT; |
| 221 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 223 | + if (isset($query->performCount)) { |
|
| 224 | + $query->performCount = false; |
|
| 225 | + } |
|
| 222 | 226 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); |
| 223 | 227 | |
| 224 | 228 | $results = $this->repository->getSearchService()->findLocations($query); |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | * @param array $sort |
| 16 | 16 | * @param int $offset |
| 17 | 17 | * @param int $limit |
| 18 | - |
|
| 19 | 18 | * @return LocationCollection |
| 20 | 19 | */ |
| 21 | 20 | public function matchLocation(array $conditions, array $sort = array(), $offset = 0, $limit = 0) |
@@ -103,7 +103,9 @@ discard block |
||
| 103 | 103 | $query = new Query(); |
| 104 | 104 | $query->limit = $limit != 0 ? $limit : self::INT_MAX_16BIT; |
| 105 | 105 | $query->offset = $offset; |
| 106 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 106 | + if (isset($query->performCount)) { |
|
| 107 | + $query->performCount = false; |
|
| 108 | + } |
|
| 107 | 109 | $query->filter = $this->getQueryCriterion($key, $values); |
| 108 | 110 | if (!empty($sort)) { |
| 109 | 111 | $query->sortClauses = $this->getSortClauses($sort); |
@@ -229,7 +231,9 @@ discard block |
||
| 229 | 231 | { |
| 230 | 232 | $query = new Query(); |
| 231 | 233 | $query->limit = self::INT_MAX_16BIT; |
| 232 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 234 | + if (isset($query->performCount)) { |
|
| 235 | + $query->performCount = false; |
|
| 236 | + } |
|
| 233 | 237 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); |
| 234 | 238 | $results = $this->repository->getSearchService()->findContent($query); |
| 235 | 239 | |
@@ -269,7 +273,9 @@ discard block |
||
| 269 | 273 | { |
| 270 | 274 | $query = new Query(); |
| 271 | 275 | $query->limit = self::INT_MAX_16BIT; |
| 272 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 276 | + if (isset($query->performCount)) { |
|
| 277 | + $query->performCount = false; |
|
| 278 | + } |
|
| 273 | 279 | $query->filter = new Query\Criterion\ContentTypeIdentifier($contentTypeIdentifiers); |
| 274 | 280 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure |
| 275 | 281 | // NB: we only do this in eZP versions that allow depth sorting on content queries |
@@ -297,7 +303,9 @@ discard block |
||
| 297 | 303 | { |
| 298 | 304 | $query = new Query(); |
| 299 | 305 | $query->limit = self::INT_MAX_16BIT; |
| 300 | - if (isset($query->performCount)) $query->performCount = false; |
|
| 306 | + if (isset($query->performCount)) { |
|
| 307 | + $query->performCount = false; |
|
| 308 | + } |
|
| 301 | 309 | $query->filter = new Query\Criterion\ContentTypeId($contentTypeIds); |
| 302 | 310 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure |
| 303 | 311 | // NB: we only do this in eZP versions that allow depth sorting on content queries |