@@ -107,7 +107,7 @@ |
||
107 | 107 | * |
108 | 108 | * @param string $id |
109 | 109 | * @param string $p |
110 | - * @param string $version |
|
110 | + * @param integer $version |
|
111 | 111 | * |
112 | 112 | * @return Response |
113 | 113 | */ |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | * @param array|string $id |
283 | 283 | * @param array|string $p |
284 | 284 | * @param int $offset |
285 | - * @param int $legnth |
|
285 | + * @param int $length |
|
286 | 286 | * @param string $encode |
287 | 287 | * @param bool $download |
288 | 288 | * @param string $name |
@@ -1420,7 +1420,7 @@ discard block |
||
1420 | 1420 | * @param string $class Force set node type |
1421 | 1421 | * @param bool $multiple Allow $id to be an array |
1422 | 1422 | * @param bool $allow_root Allow instance of root collection |
1423 | - * @param bool $deleted How to handle deleted node |
|
1423 | + * @param integer $deleted How to handle deleted node |
|
1424 | 1424 | * |
1425 | 1425 | * @return NodeInterface |
1426 | 1426 | */ |
@@ -1454,7 +1454,7 @@ discard block |
||
1454 | 1454 | * @param string $id |
1455 | 1455 | * @param string $path |
1456 | 1456 | * @param string $class Force set node type |
1457 | - * @param bool $deleted How to handle deleted node |
|
1457 | + * @param integer $deleted How to handle deleted node |
|
1458 | 1458 | * |
1459 | 1459 | * @return Generator |
1460 | 1460 | */ |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Constructor. |
57 | 57 | * |
58 | - * @param Notification $notifier |
|
58 | + * @param Notifier $notifier |
|
59 | 59 | * @param Server $server |
60 | 60 | */ |
61 | 61 | public function __construct(Notifier $notifier, Server $server, LoggerInterface $logger, TemplateHandler $template) |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * @param NodeInterface $node |
130 | 130 | * @param User $user |
131 | 131 | * |
132 | - * @return string |
|
132 | + * @return boolean |
|
133 | 133 | */ |
134 | 134 | protected function checkNotify(NodeInterface $node, User $user): bool |
135 | 135 | { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Constructor. |
66 | 66 | * |
67 | - * @param Notification $notifier |
|
67 | + * @param Notifier $notifier |
|
68 | 68 | * @param Server $server |
69 | 69 | */ |
70 | 70 | public function __construct(Notifier $notifier, Server $server, TemplateHandler $template, LoggerInterface $logger, ?Iterable $config = null) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @param Database $db |
73 | 73 | * @param Server $server |
74 | - * @param LoggerInterace $logger |
|
74 | + * @param LoggerInterface $logger |
|
75 | 75 | * @param iterable $config |
76 | 76 | */ |
77 | 77 | public function __construct(Database $db, Server $server, LoggerInterface $logger, ?Iterable $config = null) |
@@ -116,9 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @param iterable $receiver |
118 | 118 | * @param User $sender |
119 | - * @param string $subject |
|
120 | - * @param string $body |
|
121 | - * @param array $context |
|
119 | + * @param string $context |
|
122 | 120 | * |
123 | 121 | * @return bool |
124 | 122 | */ |
@@ -226,10 +224,10 @@ discard block |
||
226 | 224 | /** |
227 | 225 | * Add notification. |
228 | 226 | * |
229 | - * @param array $receiver |
|
230 | - * @param User $user |
|
227 | + * @param User $receiver |
|
231 | 228 | * @param MessageInterface $message |
232 | 229 | * @param array $context |
230 | + * @param User $sender |
|
233 | 231 | * |
234 | 232 | * @return ObjectId |
235 | 233 | */ |
@@ -266,7 +264,7 @@ discard block |
||
266 | 264 | /** |
267 | 265 | * Get notifications. |
268 | 266 | * |
269 | - * @param ObjectId $id |
|
267 | + * @param User $id |
|
270 | 268 | * |
271 | 269 | * @return bool |
272 | 270 | */ |
@@ -218,8 +218,6 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Replace variables. |
220 | 220 | * |
221 | - * @param string $type |
|
222 | - * @param User $user |
|
223 | 221 | */ |
224 | 222 | protected function decorate(string $template): string |
225 | 223 | { |
@@ -229,8 +227,6 @@ discard block |
||
229 | 227 | /** |
230 | 228 | * Replace variables. |
231 | 229 | * |
232 | - * @param string $type |
|
233 | - * @param User $user |
|
234 | 230 | */ |
235 | 231 | protected function decorateNode(string $template, NodeInterface $node): string |
236 | 232 | { |
@@ -248,7 +244,6 @@ discard block |
||
248 | 244 | /** |
249 | 245 | * Replace variables. |
250 | 246 | * |
251 | - * @param string $type |
|
252 | 247 | * @param User $user |
253 | 248 | */ |
254 | 249 | protected function decorateUser(string $template, User $user): string |
@@ -267,9 +262,9 @@ discard block |
||
267 | 262 | /** |
268 | 263 | * Get array value via string path. |
269 | 264 | * |
270 | - * @param iterable $arr |
|
265 | + * @param iterable $array |
|
271 | 266 | * @param string $path |
272 | - * @param string $seperator |
|
267 | + * @param string $separator |
|
273 | 268 | * |
274 | 269 | * @return mixed |
275 | 270 | */ |
@@ -100,7 +100,7 @@ |
||
100 | 100 | * @param string $attribute |
101 | 101 | * @param Closure $decorator |
102 | 102 | * |
103 | - * @return AttributeDecorator |
|
103 | + * @return EventAttributeDecorator |
|
104 | 104 | */ |
105 | 105 | public function addDecorator(string $attribute, Closure $decorator): self |
106 | 106 | { |
@@ -819,7 +819,6 @@ discard block |
||
819 | 819 | /** |
820 | 820 | * Set app attributes. |
821 | 821 | * |
822 | - * @param AppInterface $app |
|
823 | 822 | * @param array $attributes |
824 | 823 | * |
825 | 824 | * @return NodeInterface |
@@ -835,7 +834,6 @@ discard block |
||
835 | 834 | /** |
836 | 835 | * Set app attribute. |
837 | 836 | * |
838 | - * @param AppInterface $app |
|
839 | 837 | * @param string $attribute |
840 | 838 | * @param mixed $value |
841 | 839 | * |
@@ -856,7 +854,6 @@ discard block |
||
856 | 854 | /** |
857 | 855 | * Remove app attribute. |
858 | 856 | * |
859 | - * @param AppInterface $app |
|
860 | 857 | * |
861 | 858 | * @return NodeInterface |
862 | 859 | */ |
@@ -873,7 +870,6 @@ discard block |
||
873 | 870 | /** |
874 | 871 | * Remove app attribute. |
875 | 872 | * |
876 | - * @param AppInterface $app |
|
877 | 873 | * @param string $attribute |
878 | 874 | * |
879 | 875 | * @return NodeInterface |
@@ -891,7 +887,6 @@ discard block |
||
891 | 887 | /** |
892 | 888 | * Get app attribute. |
893 | 889 | * |
894 | - * @param AppInterface $app |
|
895 | 890 | * @param string $attribute |
896 | 891 | * |
897 | 892 | * @return mixed |
@@ -908,7 +903,6 @@ discard block |
||
908 | 903 | /** |
909 | 904 | * Get app attributes. |
910 | 905 | * |
911 | - * @param AppInterface $app |
|
912 | 906 | * |
913 | 907 | * @return array |
914 | 908 | */ |
@@ -947,7 +941,7 @@ discard block |
||
947 | 941 | /** |
948 | 942 | * Get meta attributes as array. |
949 | 943 | * |
950 | - * @param array $attribute Specify attributes to return |
|
944 | + * @param array $attributes Specify attributes to return |
|
951 | 945 | * |
952 | 946 | * @return array |
953 | 947 | */ |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | /** |
340 | 340 | * Get real id (reference). |
341 | 341 | * |
342 | - * @return ObjectId |
|
342 | + * @return ObjectId|null |
|
343 | 343 | */ |
344 | 344 | public function getRealId(): ?ObjectId |
345 | 345 | { |
@@ -368,7 +368,6 @@ discard block |
||
368 | 368 | /** |
369 | 369 | * Fetch children items of this collection. |
370 | 370 | * |
371 | - * @param string $node |
|
372 | 371 | * @param int $deleted |
373 | 372 | * @param array $filter |
374 | 373 | * @param mixed $name |
@@ -965,7 +964,7 @@ discard block |
||
965 | 964 | * @param string $name |
966 | 965 | * @param string $data |
967 | 966 | * |
968 | - * @return File |
|
967 | + * @return string |
|
969 | 968 | */ |
970 | 969 | public function createFile($name, $data = null): String |
971 | 970 | { |