@@ -221,7 +221,7 @@ |
||
| 221 | 221 | * Search. |
| 222 | 222 | * |
| 223 | 223 | * @param array $query |
| 224 | - * @param array $share |
|
| 224 | + * @param array $shares |
|
| 225 | 225 | * |
| 226 | 226 | * @return array |
| 227 | 227 | */ |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | * @param NodeInterface $node |
| 163 | 163 | * @param User $user |
| 164 | 164 | * |
| 165 | - * @return string |
|
| 165 | + * @return boolean |
|
| 166 | 166 | */ |
| 167 | 167 | protected function checkNotify(NodeInterface $node, User $user): bool |
| 168 | 168 | { |
@@ -251,10 +251,10 @@ discard block |
||
| 251 | 251 | * Add notification. |
| 252 | 252 | * |
| 253 | 253 | * @param array $receiver |
| 254 | - * @param User $user |
|
| 255 | 254 | * @param string $subject |
| 256 | 255 | * @param string $body |
| 257 | 256 | * @param array $context |
| 257 | + * @param User $sender |
|
| 258 | 258 | * |
| 259 | 259 | * @return ObjectId |
| 260 | 260 | */ |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | /** |
| 296 | 296 | * Get notifications. |
| 297 | 297 | * |
| 298 | - * @param ObjectId $id |
|
| 298 | + * @param User $id |
|
| 299 | 299 | * |
| 300 | 300 | * @return bool |
| 301 | 301 | */ |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Balloon\App\Preview; |
| 14 | 14 | |
| 15 | -use Balloon\Exception; |
|
| 16 | 15 | use Balloon\Filesystem\Node\File; |
| 17 | 16 | use Balloon\Hook\AbstractHook; |
| 18 | 17 | use MongoDB\GridFS\Exception\FileNotFoundException; |
@@ -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 | */ |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | * |
| 292 | 292 | * @param array $id |
| 293 | 293 | * @param string $class Force check node type |
| 294 | - * @param bool $deleted |
|
| 294 | + * @param integer $deleted |
|
| 295 | 295 | * |
| 296 | 296 | * @return Generator |
| 297 | 297 | */ |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | * @param string $class Force set node type |
| 412 | 412 | * @param bool $multiple Allow $id to be an array |
| 413 | 413 | * @param bool $allow_root Allow instance of root collection |
| 414 | - * @param bool $deleted How to handle deleted node |
|
| 414 | + * @param integer $deleted How to handle deleted node |
|
| 415 | 415 | * |
| 416 | 416 | * @return NodeInterface |
| 417 | 417 | */ |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | * @param string $path |
| 695 | 695 | * @param bool $new |
| 696 | 696 | * |
| 697 | - * @return bool |
|
| 697 | + * @return string |
|
| 698 | 698 | */ |
| 699 | 699 | protected function verifyFile(?string $path, bool $new = false): string |
| 700 | 700 | { |
@@ -827,7 +827,7 @@ discard block |
||
| 827 | 827 | /** |
| 828 | 828 | * Finalize put request. |
| 829 | 829 | * |
| 830 | - * @param resource|string $file |
|
| 830 | + * @param string|null $file |
|
| 831 | 831 | * @param bool $new |
| 832 | 832 | * @param array $attributes |
| 833 | 833 | * |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | use Balloon\Helper; |
| 21 | 21 | use Balloon\Hook; |
| 22 | 22 | use Balloon\Mime; |
| 23 | -use Balloon\Server\User; |
|
| 24 | 23 | use MongoDB\BSON\UTCDateTime; |
| 25 | 24 | use Psr\Log\LoggerInterface; |
| 26 | 25 | |
@@ -108,14 +108,13 @@ |
||
| 108 | 108 | * |
| 109 | 109 | * @param bool $reference |
| 110 | 110 | * |
| 111 | - * @return ObjectId |
|
| 111 | + * @return ObjectId|null |
|
| 112 | 112 | */ |
| 113 | 113 | public function getShareId(bool $reference = false): ?ObjectId; |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Get share node. |
| 117 | 117 | * |
| 118 | - * @param bool $reference |
|
| 119 | 118 | * |
| 120 | 119 | * @return Collection |
| 121 | 120 | */ |
@@ -618,7 +618,7 @@ |
||
| 618 | 618 | /** |
| 619 | 619 | * Save. |
| 620 | 620 | * |
| 621 | - * @param array $attributes |
|
| 621 | + * @param string[] $attributes |
|
| 622 | 622 | * |
| 623 | 623 | * @throws Exception\InvalidArgument if a given argument is not valid |
| 624 | 624 | * |