Completed
Push — master ( 4ab8b3...849f01 )
by Raffael
06:16
created
src/httpdocs/index.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.DesktopClient/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.Notification/Adapter/Mail.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/Adapter/Db.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/Adapter/AdapterInterface.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/Notifier.php 1 patch
Spacing   +4 added lines, -4 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
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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])) {
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/TemplateHandler.php 1 patch
Spacing   +4 added lines, -4 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
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             switch ($option) {
121 121
                 case 'asset_dir':
122 122
                 case 'fallback_locale':
123
-                    $this->{$option} = (string) $value;
123
+                    $this->{$option} = (string)$value;
124 124
 
125 125
                 break;
126 126
                 default:
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     {
237 237
         $decorator = $this->decorator;
238 238
 
239
-        return preg_replace_callback('/(\{node\.(([a-z]\.*)+)\})/', function ($match) use ($node, $decorator) {
239
+        return preg_replace_callback('/(\{node\.(([a-z]\.*)+)\})/', function($match) use ($node, $decorator) {
240 240
             $key = explode('.', $match[2]);
241 241
             $key = array_shift($key);
242 242
             $attrs = $decorator->decorate($node, [$key]);
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     {
256 256
         $role_decorator = $this->role_decorator;
257 257
 
258
-        return preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function ($match) use ($user, $role_decorator) {
258
+        return preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function($match) use ($user, $role_decorator) {
259 259
             $key = explode('.', $match[2]);
260 260
             $key = array_shift($key);
261 261
             $attrs = $role_decorator->decorate($user, [$key]);
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Hook/Subscription.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
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         foreach ($config as $option => $value) {
93 93
             switch ($option) {
94 94
                 case 'notification_throttle':
95
-                    $this->{$option} = (int) $value;
95
+                    $this->{$option} = (int)$value;
96 96
 
97 97
                 break;
98 98
                 default:
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     public function postCreateCollection(Collection $parent, Collection $node, bool $clone): void
110 110
     {
111 111
         $this->notify($node);
112
-        $user_id = (string) $this->server->getIdentity()->getId();
112
+        $user_id = (string)$this->server->getIdentity()->getId();
113 113
         $subs = $parent->getAppAttribute('Balloon\\App\\Notification', 'subscription');
114 114
 
115 115
         if (isset($subs[$user_id]) && $subs[$user_id]['recursive'] === true) {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $parent = $node->getParent();
172 172
 
173 173
         if ($parent !== null) {
174
-            $subs = array_keys((array) $parent->getAppAttribute('Balloon\\App\\Notification', 'subscription'));
174
+            $subs = array_keys((array)$parent->getAppAttribute('Balloon\\App\\Notification', 'subscription'));
175 175
             $parents = $this->getReceiver($parent);
176 176
 
177 177
             $blacklist = array_diff($subs, $parents);
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         $node->setAppAttribute('Balloon\\App\\Notification', 'subscription', $update);
224 224
 
225 225
         if ($this->server->getIdentity() !== null) {
226
-            $user_id = (string) $this->server->getIdentity()->getId();
226
+            $user_id = (string)$this->server->getIdentity()->getId();
227 227
             if (isset($subs[$user_id]) && $subs[$user_id]['exclude_me'] === true) {
228 228
                 $this->logger->debug('skip message for user ['.$user_id.'], user excludes own actions in node ['.$node->getId().']', [
229 229
                     'category' => get_class($this),
Please login to merge, or discard this patch.