@@ -1044,6 +1044,7 @@ |
||
| 1044 | 1044 | |
| 1045 | 1045 | /** |
| 1046 | 1046 | * Duplicate name with a uniqid within name. |
| 1047 | + * @param string $name |
|
| 1047 | 1048 | */ |
| 1048 | 1049 | protected function getDuplicateName(?string $name = null, ?string $class = null): string |
| 1049 | 1050 | { |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | /** |
| 59 | 59 | * Init. |
| 60 | 60 | * |
| 61 | - * @param Decorator $role_decorator |
|
| 61 | + * @param RoleAttributeDecorator $role_decorator |
|
| 62 | 62 | */ |
| 63 | 63 | public function __construct(Server $server, Acl $acl, RoleAttributeDecorator $role_decorator) |
| 64 | 64 | { |
@@ -195,6 +195,7 @@ |
||
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | 197 | * Filesystem factory. |
| 198 | + * @param User $user |
|
| 198 | 199 | */ |
| 199 | 200 | public function getFilesystem(?User $user = null): Filesystem |
| 200 | 201 | { |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * @param string $class Force set node type |
| 211 | 211 | * @param bool $multiple Allow $id to be an array |
| 212 | 212 | * @param bool $allow_root Allow instance of root collection |
| 213 | - * @param bool $deleted How to handle deleted node |
|
| 213 | + * @param integer $deleted How to handle deleted node |
|
| 214 | 214 | */ |
| 215 | 215 | protected function _getNode( |
| 216 | 216 | ?string $id = null, |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * @param string $id |
| 243 | 243 | * @param string $path |
| 244 | 244 | * @param string $class Force set node type |
| 245 | - * @param bool $deleted How to handle deleted node |
|
| 245 | + * @param integer $deleted How to handle deleted node |
|
| 246 | 246 | */ |
| 247 | 247 | protected function _getNodes( |
| 248 | 248 | $id = null, |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * |
| 116 | 116 | * @param string $id |
| 117 | 117 | * @param string $p |
| 118 | - * @param string $version |
|
| 118 | + * @param integer $version |
|
| 119 | 119 | */ |
| 120 | 120 | public function postRestore(int $version, ?string $id = null, ?string $p = null): Response |
| 121 | 121 | { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Constructor. |
| 73 | 73 | * |
| 74 | - * @param Elasticsarch $es |
|
| 74 | + * @param Elasticsearch $es |
|
| 75 | 75 | * @param iterable $config |
| 76 | 76 | */ |
| 77 | 77 | public function __construct(Elasticsearch $es, Server $server, NodeAttributeDecorator $decorator, LoggerInterface $logger, Iterable $config = null) |
@@ -354,6 +354,7 @@ discard block |
||
| 354 | 354 | |
| 355 | 355 | /** |
| 356 | 356 | * Get stored file. |
| 357 | + * @param string $hash |
|
| 357 | 358 | */ |
| 358 | 359 | protected function getFileByHash(?string $hash): ?array |
| 359 | 360 | { |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | * Get Session. |
| 138 | 138 | * |
| 139 | 139 | * |
| 140 | - * @return Session |
|
| 140 | + * @return Session|null |
|
| 141 | 141 | */ |
| 142 | 142 | public static function getByAccessToken(Server $server, ObjectId $session_id, string $access_token): self |
| 143 | 143 | { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | /** |
| 258 | 258 | * Get real id (reference). |
| 259 | 259 | * |
| 260 | - * @return ObjectId |
|
| 260 | + * @return ObjectId|null |
|
| 261 | 261 | */ |
| 262 | 262 | public function getRealId(): ?ObjectId |
| 263 | 263 | { |
@@ -639,6 +639,7 @@ discard block |
||
| 639 | 639 | |
| 640 | 640 | /** |
| 641 | 641 | * Create new file as a child from this collection. |
| 642 | + * @param string $name |
|
| 642 | 643 | */ |
| 643 | 644 | public function addFile($name, ?ObjectId $session = null, array $attributes = [], int $conflict = NodeInterface::CONFLICT_NOACTION, bool $clone = false): File |
| 644 | 645 | { |
@@ -147,6 +147,7 @@ |
||
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * Store file. |
| 150 | + * @param string $adapter |
|
| 150 | 151 | */ |
| 151 | 152 | public function storeFile(File $file, ObjectId $session, ?string &$adapter = null) |
| 152 | 153 | { |