Completed
Branch dev (09647c)
by Raffael
11:14
created
src/app/Balloon.App.Notification/Api/Latest/Notification.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -221,10 +221,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/MessageInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Constructor/Http.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/NodeMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Webdav/Constructor/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Hook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Constructor/Http.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.