@@ -221,10 +221,10 @@ |
||
221 | 221 | { |
222 | 222 | $mail = new Message(); |
223 | 223 | $mail->setBody($body) |
224 | - ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username']) |
|
225 | - ->setSubject($subject) |
|
226 | - ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients') |
|
227 | - ->setBcc($receiver); |
|
224 | + ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username']) |
|
225 | + ->setSubject($subject) |
|
226 | + ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients') |
|
227 | + ->setBcc($receiver); |
|
228 | 228 | $this->async->addJob(Mail::class, $mail->toString()); |
229 | 229 | |
230 | 230 | return (new Response())->setCode(202); |
@@ -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 |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $body = []; |
122 | 122 | foreach ($this->notifier->getNotifications($this->user) as $message) { |
123 | 123 | $note = $message; |
124 | - $note['id'] = (string) $note['_id']; |
|
124 | + $note['id'] = (string)$note['_id']; |
|
125 | 125 | unset($note['_id'], $note['receiver']); |
126 | 126 | |
127 | 127 | $note['sender'] = $this->decorator->decorate($this->server->getUserById($note['sender']), ['id', 'username']); |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | $this->notifier->subscribeNode($this->fs->getNode($id, $p), $subscribe); |
258 | 258 | } catch (\Exception $e) { |
259 | 259 | $failures[] = [ |
260 | - 'id' => (string) $node->getId(), |
|
260 | + 'id' => (string)$node->getId(), |
|
261 | 261 | 'name' => $node->getName(), |
262 | 262 | 'error' => get_class($e), |
263 | 263 | 'message' => $e->getMessage(), |
@@ -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 |
@@ -33,35 +33,35 @@ discard block |
||
33 | 33 | ->prependRoute(new Route('/api/v2/notification', Api::class)) |
34 | 34 | ->prependRoute(new Route('/api/v2/notification/{id:#([0-9a-z]{24})#}', Api::class)); |
35 | 35 | |
36 | - $decorator->addDecorator('subscription', function ($node) use ($server) { |
|
36 | + $decorator->addDecorator('subscription', function($node) use ($server) { |
|
37 | 37 | $subscription = $node->getAppAttribute('Balloon\\App\\Notification', 'subscription'); |
38 | 38 | |
39 | 39 | if (is_array($subscription)) { |
40 | - return isset($subscription[(string) $server->getIdentity()->getId()]); |
|
40 | + return isset($subscription[(string)$server->getIdentity()->getId()]); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | return false; |
44 | 44 | }); |
45 | 45 | |
46 | - $decorator->addDecorator('subscription_exclude_me', function ($node) use ($server) { |
|
46 | + $decorator->addDecorator('subscription_exclude_me', function($node) use ($server) { |
|
47 | 47 | $subscription = $node->getAppAttribute('Balloon\\App\\Notification', 'subscription'); |
48 | 48 | |
49 | - if (is_array($subscription) && isset($subscription[(string) $server->getIdentity()->getId()]['exclude_me'])) { |
|
50 | - return $subscription[(string) $server->getIdentity()->getId()]['exclude_me']; |
|
49 | + if (is_array($subscription) && isset($subscription[(string)$server->getIdentity()->getId()]['exclude_me'])) { |
|
50 | + return $subscription[(string)$server->getIdentity()->getId()]['exclude_me']; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | return false; |
54 | 54 | }); |
55 | 55 | |
56 | - $decorator->addDecorator('subscription_recursive', function ($node) use ($server) { |
|
56 | + $decorator->addDecorator('subscription_recursive', function($node) use ($server) { |
|
57 | 57 | if (!($node instanceof Collection)) { |
58 | 58 | return null; |
59 | 59 | } |
60 | 60 | |
61 | 61 | $subscription = $node->getAppAttribute('Balloon\\App\\Notification', 'subscription'); |
62 | 62 | |
63 | - if (is_array($subscription) && isset($subscription[(string) $server->getIdentity()->getId()]['recursive'])) { |
|
64 | - return $subscription[(string) $server->getIdentity()->getId()]['recursive']; |
|
63 | + if (is_array($subscription) && isset($subscription[(string)$server->getIdentity()->getId()]['recursive'])) { |
|
64 | + return $subscription[(string)$server->getIdentity()->getId()]['recursive']; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | return false; |
@@ -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 @@ |
||
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 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | ->prependRoute(new Route('/api/v2/file/convert', Convert::class)) |
35 | 35 | ->prependRoute(new Route('/api/v2/file/{id:#([0-9a-z]{24})#}/convert', Convert::class)); |
36 | 36 | |
37 | - $decorator->addDecorator('master', function ($node) use ($fs, $decorator) { |
|
37 | + $decorator->addDecorator('master', function($node) use ($fs, $decorator) { |
|
38 | 38 | $master = $node->getAppAttribute('Balloon\\App\\Convert', 'master'); |
39 | 39 | if (null === $master) { |
40 | 40 | return null; |
@@ -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 |