@@ -102,7 +102,7 @@ discard block |
||
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 |
||
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]; |
@@ -39,7 +39,7 @@ |
||
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 |
@@ -54,9 +54,9 @@ |
||
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 | } |
@@ -17,7 +17,7 @@ |
||
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 | } |
@@ -18,7 +18,7 @@ |
||
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 | } |