@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $this->db->storage->updateOne( |
| 49 | 49 | ['_id' => $object['_id']], |
| 50 | 50 | [ |
| 51 | - '$set' => ['share_name' => $object['name']], |
|
| 51 | + '$set' => ['share_name' => $object['name']], |
|
| 52 | 52 | ] |
| 53 | 53 | ); |
| 54 | 54 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -113,9 +113,9 @@ |
||
| 113 | 113 | $body->addPart($html); |
| 114 | 114 | |
| 115 | 115 | $mail = (new Message()) |
| 116 | - ->setSubject($message->getSubject($receiver)) |
|
| 117 | - ->setBody($body) |
|
| 118 | - ->setTo($address); |
|
| 116 | + ->setSubject($message->getSubject($receiver)) |
|
| 117 | + ->setBody($body) |
|
| 118 | + ->setTo($address); |
|
| 119 | 119 | |
| 120 | 120 | if (null === $sender) { |
| 121 | 121 | $mail->setFrom($this->sender_address, $this->sender_name); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | public function subscribeNode(NodeInterface $node, bool $subscribe = true, bool $exclude_me = true, bool $recursive = false): bool |
| 302 | 302 | { |
| 303 | 303 | $subs = $node->getAppAttribute(__NAMESPACE__, 'subscription'); |
| 304 | - $user_id = (string) $this->server->getIdentity()->getId(); |
|
| 304 | + $user_id = (string)$this->server->getIdentity()->getId(); |
|
| 305 | 305 | |
| 306 | 306 | if (true === $subscribe) { |
| 307 | 307 | $this->logger->debug('user ['.$this->server->getIdentity()->getId().'] subribes node ['.$node->getId().']', [ |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | $subs[$user_id] = $subscription; |
| 318 | 318 | $node->setAppAttribute(__NAMESPACE__, 'subscription', $subs); |
| 319 | 319 | if ($node instanceof Collection && $recursive === true) { |
| 320 | - $node->doRecursiveAction(function ($child) use ($subscription, $user_id) { |
|
| 320 | + $node->doRecursiveAction(function($child) use ($subscription, $user_id) { |
|
| 321 | 321 | $subs = $child->getAppAttribute(__NAMESPACE__, 'subscription'); |
| 322 | 322 | $subs[$user_id] = $subscription; |
| 323 | 323 | $child->setAppAttribute(__NAMESPACE__, 'subscription', $subs); |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | $node->setAppAttribute(__NAMESPACE__, 'subscription', $subs); |
| 336 | 336 | |
| 337 | 337 | if ($node instanceof Collection && $recursive === true) { |
| 338 | - $node->doRecursiveAction(function ($child) use ($user_id) { |
|
| 338 | + $node->doRecursiveAction(function($child) use ($user_id) { |
|
| 339 | 339 | $subs = $child->getAppAttribute(__NAMESPACE__, 'subscription'); |
| 340 | 340 | |
| 341 | 341 | if (isset($subs[$user_id])) { |
@@ -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 | */ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |