@@ -49,7 +49,7 @@ |
||
49 | 49 | protected function apply(Event $event) |
50 | 50 | { |
51 | 51 | $parts = explode('\\', get_class($event)); |
52 | - $this->{'apply'.end($parts)}($event); |
|
52 | + $this->{'apply' . end($parts)}($event); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | return static::isNativeType($type) |
19 | 19 | ? $type |
20 | - : '\\'.$type; |
|
20 | + : '\\' . $type; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public static function isNativeType(string $type) |
@@ -208,7 +208,7 @@ |
||
208 | 208 | $arguments = ",\n$arguments"; |
209 | 209 | } |
210 | 210 | |
211 | - $serializers = preg_replace('/^.{2,}$/m', ' $0',join(",\n", $serializers)); |
|
211 | + $serializers = preg_replace('/^.{2,}$/m', ' $0', join(",\n", $serializers)); |
|
212 | 212 | |
213 | 213 | if ( ! empty($serializers)) { |
214 | 214 | $serializers = "\n$serializers\n "; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | return new WithFieldSerializers( |
63 | 63 | $aggregateRootId, |
64 | 64 | $timeOfRecording, |
65 | - array_map(function ($property) { |
|
65 | + array_map(function($property) { |
|
66 | 66 | return ['property' => $property]; |
67 | 67 | }, $payload['items']) |
68 | 68 | ); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | public function toPayload(): array |
72 | 72 | { |
73 | 73 | return [ |
74 | - 'items' => array_map(function ($item) { |
|
74 | + 'items' => array_map(function($item) { |
|
75 | 75 | return $item['property']; |
76 | 76 | }, $this->items) |
77 | 77 | ]; |
@@ -16,11 +16,11 @@ |
||
16 | 16 | $this->assertTrue($loader->canLoad('a_yaml_file.yaml')); |
17 | 17 | $this->assertTrue($loader->canLoad('a_yaml_file.yml')); |
18 | 18 | $this->assertFalse($loader->canLoad('not_a_yaml_file.php')); |
19 | - $definitionGroup = $loader->load(__DIR__.'/Fixtures/exampleDefinition.yaml'); |
|
19 | + $definitionGroup = $loader->load(__DIR__ . '/Fixtures/exampleDefinition.yaml'); |
|
20 | 20 | $dumper = new CodeDumper(); |
21 | 21 | $code = $dumper->dump($definitionGroup); |
22 | - file_put_contents(__DIR__.'/Fixtures/definedWithYamlFixture.php', $code); |
|
23 | - $expected = file_get_contents(__DIR__.'/Fixtures/definedWithYamlFixture.php'); |
|
22 | + file_put_contents(__DIR__ . '/Fixtures/definedWithYamlFixture.php', $code); |
|
23 | + $expected = file_get_contents(__DIR__ . '/Fixtures/definedWithYamlFixture.php'); |
|
24 | 24 | $this->assertEquals($expected, $code); |
25 | 25 | } |
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | public function persist(Event ... $events) |
49 | 49 | { |
50 | - $messages = array_map(function (Event $event) { |
|
50 | + $messages = array_map(function(Event $event) { |
|
51 | 51 | return $this->decorator->decorate(new Message($event)); |
52 | 52 | }, $events); |
53 | 53 |