@@ -71,6 +71,9 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $uri |
|
| 76 | + */ |
|
| 74 | 77 | private function getPathFromUri($uri) { |
| 75 | 78 | if (strpos($uri, '://') === false) { |
| 76 | 79 | return $uri; |
@@ -170,9 +173,9 @@ discard block |
||
| 170 | 173 | * If a depth of 1 is requested child elements will also be returned. |
| 171 | 174 | * |
| 172 | 175 | * @param SearchResult[] $results |
| 173 | - * @param array $propertyNames |
|
| 176 | + * @param string[] $propertyNames |
|
| 174 | 177 | * @param int $depth |
| 175 | - * @return \Iterator |
|
| 178 | + * @return \Traversable |
|
| 176 | 179 | */ |
| 177 | 180 | function getPropertiesIteratorResults($results, $propertyNames = [], $depth = 0) { |
| 178 | 181 | $propFindType = $propertyNames ? PropFind::NORMAL : PropFind::ALLPROPS; |
@@ -24,15 +24,12 @@ |
||
| 24 | 24 | use Sabre\DAV\Exception\BadRequest; |
| 25 | 25 | use Sabre\DAV\Exception\Forbidden; |
| 26 | 26 | use Sabre\DAV\INode; |
| 27 | -use Sabre\DAV\Node; |
|
| 28 | 27 | use Sabre\DAV\PropFind; |
| 29 | 28 | use Sabre\DAV\Server; |
| 30 | 29 | use Sabre\DAV\ServerPlugin; |
| 31 | -use Sabre\DAV\Xml\Element\Response; |
|
| 32 | 30 | use Sabre\DAV\Xml\Response\MultiStatus; |
| 33 | 31 | use Sabre\HTTP\RequestInterface; |
| 34 | 32 | use Sabre\HTTP\ResponseInterface; |
| 35 | -use Sabre\Xml\Writer; |
|
| 36 | 33 | use SearchDAV\Backend\ISearchBackend; |
| 37 | 34 | use SearchDAV\Backend\SearchPropertyDefinition; |
| 38 | 35 | use SearchDAV\Backend\SearchResult; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * |
| 34 | 34 | * @param string $href |
| 35 | 35 | * @param BasicSearchSchema|null $schema |
| 36 | - * @param null|int|string $httpStatus |
|
| 36 | + * @param integer $httpStatus |
|
| 37 | 37 | */ |
| 38 | 38 | function __construct($href, BasicSearchSchema $schema = null, $httpStatus = null) { |
| 39 | 39 | parent::__construct($href, [], $httpStatus); |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * @param string $href |
| 55 | - * @param int|string $depth |
|
| 55 | + * @param integer $depth |
|
| 56 | 56 | */ |
| 57 | 57 | public function __construct($href = '', $depth = 1) { |
| 58 | 58 | $this->href = $href; |