@@ -87,9 +87,9 @@ |
||
| 87 | 87 | * If a depth of 1 is requested child elements will also be returned. |
| 88 | 88 | * |
| 89 | 89 | * @param SearchResult[] $results |
| 90 | - * @param array $propertyNames |
|
| 90 | + * @param string[] $propertyNames |
|
| 91 | 91 | * @param int $depth |
| 92 | - * @return \Iterator |
|
| 92 | + * @return \Traversable |
|
| 93 | 93 | */ |
| 94 | 94 | private function getPropertiesIteratorResults($results, $propertyNames = [], $depth = 0) { |
| 95 | 95 | $propFindType = $propertyNames ? PropFind::NORMAL : PropFind::ALLPROPS; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** @var BasicSearch $query */ |
| 62 | 62 | $query = $xml['{DAV:}basicsearch']; |
| 63 | 63 | $scopes = $query->from; |
| 64 | - $results = array_map(function (Scope $scope) { |
|
| 64 | + $results = array_map(function(Scope $scope) { |
|
| 65 | 65 | $scope->path = $this->pathHelper->getPathFromUri($scope->href); |
| 66 | 66 | if ($this->searchBackend->isValidScope($scope->href, $scope->depth, $scope->path)) { |
| 67 | 67 | $searchProperties = $this->searchBackend->getPropertyDefinitionsForScope($scope->href, $scope->path); |