Passed
Push — main ( ed1bb6...4383ba )
by Slawomir
04:39
created
src/Infrastructure/Events/ApplicationInboundEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         if ($value == null) {
103 103
             return null;
104 104
         }
105
-        return is_string($value) ? $value : (string)$value;
105
+        return is_string($value) ? $value : (string) $value;
106 106
     }
107 107
 
108 108
     /**
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             if ($nullable) {
117 117
                 return null;
118 118
             }
119
-            $name = call_user_func(get_called_class() . '::getName');
119
+            $name = call_user_func(get_called_class().'::getName');
120 120
             throw new RuntimeException("Event $name requires a field '$fieldName' to be present");
121 121
         }
122 122
         return $this->data[$fieldName];
Please login to merge, or discard this patch.
src/Infrastructure/Events/Api/EventHandlerReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     public function getEventName(): string
41 41
     {
42
-        return call_user_func($this->inboundEventClass . '::getName');
42
+        return call_user_func($this->inboundEventClass.'::getName');
43 43
     }
44 44
 
45 45
 
Please login to merge, or discard this patch.
src/Infrastructure/Events/Api/ApplicationEventSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@
 block discarded – undo
54 54
     {
55 55
         return $this
56 56
             ->subscribedHandlers
57
-            ->filter(function ($ref) use ($event) {
57
+            ->filter(function($ref) use ($event) {
58 58
                 return $ref->getEventName() == $event->getName();
59
-            })->map(function ($value) {
59
+            })->map(function($value) {
60 60
                 return $value;
61 61
             })->toArray();
62 62
     }
Please login to merge, or discard this patch.
src/Modules/Posts/Api/Event/Inbound/UserRenamedPostsIEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct(array $data)
19 19
     {
20
-        parent::__construct( $data);
20
+        parent::__construct($data);
21 21
         $this->oldLogin = $this->string('oldLogin');
22 22
         $this->newLogin = $this->string('newLogin');
23 23
     }
Please login to merge, or discard this patch.
src/Modules/Posts/Api/Event/Inbound/CommentCreatedPostsIEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct(array $data)
20 20
     {
21
-        parent::__construct( $data);
21
+        parent::__construct($data);
22 22
         $this->postId = $this->ulid('postId');
23 23
         $this->comments = [$this->array('comment')];
24 24
     }
Please login to merge, or discard this patch.