Completed
Branch dev (276354)
by Raffael
15:43
created
src/app/Balloon.App.Convert/AttributeDecorator.php 1 patch
Spacing   +5 added lines, -5 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
@@ -99,16 +99,16 @@  discard block
 block discarded – undo
99 99
         $node_decorator = $this->node_decorator;
100 100
 
101 101
         return [
102
-            'id' => (string) $slave['_id'],
103
-            'format' => (string) $slave['format'],
104
-            'master' => function ($slave) use ($fs, $node_decorator) {
102
+            'id' => (string)$slave['_id'],
103
+            'format' => (string)$slave['format'],
104
+            'master' => function($slave) use ($fs, $node_decorator) {
105 105
                 try {
106 106
                     return $node_decorator->decorate($fs->findNodeById($slave['master']), ['_links', 'id', 'name']);
107 107
                 } catch (\Exception $e) {
108 108
                     return null;
109 109
                 }
110 110
             },
111
-            'slave' => function ($slave) use ($fs, $node_decorator) {
111
+            'slave' => function($slave) use ($fs, $node_decorator) {
112 112
                 if (!isset($slave['slave'])) {
113 113
                     return null;
114 114
                 }
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
@@ -35,35 +35,35 @@  discard block
 block discarded – undo
35 35
             ->prependRoute(new Route('/api/v2/nodes|files|collections/subscription(/|\z)', v2\Subscription::class))
36 36
             ->prependRoute(new Route('/api/v2/nodes|files|collections/{id:#([0-9a-z]{24})#}/subscription(/|\z)', v2\Subscription::class));
37 37
 
38
-        $decorator->addDecorator('subscription', function ($node) use ($server) {
38
+        $decorator->addDecorator('subscription', function($node) use ($server) {
39 39
             $subscription = $node->getAppAttribute('Balloon\\App\\Notification', 'subscription');
40 40
 
41 41
             if (is_array($subscription)) {
42
-                return isset($subscription[(string) $server->getIdentity()->getId()]);
42
+                return isset($subscription[(string)$server->getIdentity()->getId()]);
43 43
             }
44 44
 
45 45
             return false;
46 46
         });
47 47
 
48
-        $decorator->addDecorator('subscription_exclude_me', function ($node) use ($server) {
48
+        $decorator->addDecorator('subscription_exclude_me', function($node) use ($server) {
49 49
             $subscription = $node->getAppAttribute('Balloon\\App\\Notification', 'subscription');
50 50
 
51
-            if (is_array($subscription) && isset($subscription[(string) $server->getIdentity()->getId()]['exclude_me'])) {
52
-                return $subscription[(string) $server->getIdentity()->getId()]['exclude_me'];
51
+            if (is_array($subscription) && isset($subscription[(string)$server->getIdentity()->getId()]['exclude_me'])) {
52
+                return $subscription[(string)$server->getIdentity()->getId()]['exclude_me'];
53 53
             }
54 54
 
55 55
             return false;
56 56
         });
57 57
 
58
-        $decorator->addDecorator('subscription_recursive', function ($node) use ($server) {
58
+        $decorator->addDecorator('subscription_recursive', function($node) use ($server) {
59 59
             if (!($node instanceof Collection)) {
60 60
                 return null;
61 61
             }
62 62
 
63 63
             $subscription = $node->getAppAttribute('Balloon\\App\\Notification', 'subscription');
64 64
 
65
-            if (is_array($subscription) && isset($subscription[(string) $server->getIdentity()->getId()]['recursive'])) {
66
-                return $subscription[(string) $server->getIdentity()->getId()]['recursive'];
65
+            if (is_array($subscription) && isset($subscription[(string)$server->getIdentity()->getId()]['recursive'])) {
66
+                return $subscription[(string)$server->getIdentity()->getId()]['recursive'];
67 67
             }
68 68
 
69 69
             return false;
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Api/v2/Notifications.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   +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
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                     $this->notifier->subscribeNode($this->fs->getNode($id, $p), $subscribe);
292 292
                 } catch (\Exception $e) {
293 293
                     $failures[] = [
294
-                        'id' => (string) $node->getId(),
294
+                        'id' => (string)$node->getId(),
295 295
                         'name' => $node->getName(),
296 296
                         'error' => get_class($e),
297 297
                         'message' => $e->getMessage(),
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Api/v2/Subscription.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
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $node_decorator = $this->node_decorator;
83 83
         $notifier = $this->notifier;
84 84
 
85
-        return $this->bulk($id, $p, function ($node) use ($node_decorator, $notifier, $subscribe, $exclude_me, $recursive) {
85
+        return $this->bulk($id, $p, function($node) use ($node_decorator, $notifier, $subscribe, $exclude_me, $recursive) {
86 86
             $notifier->subscribeNode($node, $subscribe, $exclude_me, $recursive);
87 87
 
88 88
             return [
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Exception/NotificationNotFound.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/Exception/TemplateInvalidLocale.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/Exception/AdapterNotUnique.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/Exception/AdapterNotFound.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/Exception/TemplateInvalidType.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.