@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @param \SearchDAV\XML\Operator $operator |
| 129 | - * @param array $allProps |
|
| 129 | + * @param SearchPropertyDefinition[] $allProps |
|
| 130 | 130 | * @return Operator |
| 131 | 131 | * @throws BadRequest |
| 132 | 132 | */ |
@@ -163,9 +163,9 @@ discard block |
||
| 163 | 163 | * If a depth of 1 is requested child elements will also be returned. |
| 164 | 164 | * |
| 165 | 165 | * @param SearchResult[] $results |
| 166 | - * @param array $propertyNames |
|
| 166 | + * @param string[] $propertyNames |
|
| 167 | 167 | * @param int $depth |
| 168 | - * @return \Iterator |
|
| 168 | + * @return \Traversable |
|
| 169 | 169 | */ |
| 170 | 170 | private function getPropertiesIteratorResults($results, $propertyNames = [], $depth = 0): \Iterator { |
| 171 | 171 | $propFindType = $propertyNames ? PropFind::NORMAL : PropFind::ALLPROPS; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * @throws BadRequest |
| 98 | 98 | */ |
| 99 | 99 | private function getQueryForXML(BasicSearch $xml, array $allProps): Query { |
| 100 | - $orderBy = array_map(function (\SearchDAV\XML\Order $order) use ($allProps) { |
|
| 100 | + $orderBy = array_map(function(\SearchDAV\XML\Order $order) use ($allProps) { |
|
| 101 | 101 | if (!isset($allProps[$order->property])) { |
| 102 | 102 | throw new BadRequest('requested order by property is not a valid property for this scope'); |
| 103 | 103 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | return new Order($prop, $order->order); |
| 109 | 109 | }, $xml->orderBy); |
| 110 | - $select = array_map(function ($propName) use ($allProps) { |
|
| 110 | + $select = array_map(function($propName) use ($allProps) { |
|
| 111 | 111 | if (!isset($allProps[$propName])) { |
| 112 | 112 | return null; |
| 113 | 113 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * @throws BadRequest |
| 132 | 132 | */ |
| 133 | 133 | private function transformOperator(\SearchDAV\XML\Operator $operator, array $allProps): Operator { |
| 134 | - $arguments = array_map(function ($argument) use ($allProps) { |
|
| 134 | + $arguments = array_map(function($argument) use ($allProps) { |
|
| 135 | 135 | if (is_string($argument)) { |
| 136 | 136 | if (!isset($allProps[$argument])) { |
| 137 | 137 | throw new BadRequest('requested search property is not a valid property for this scope'); |