Completed
Push — master ( 8fc86c...e62d6f )
by Frank
02:52
created
src/EventSourcing/AggregateRoot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/EventSourcing/CodeGeneration/TypeNormalizer.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
         return static::isNativeType($type)
19 19
             ? $type
20
-            : '\\'.$type;
20
+            : '\\' . $type;
21 21
     }
22 22
 
23 23
     public static function isNativeType(string $type)
Please login to merge, or discard this patch.
src/EventSourcing/CodeGeneration/CodeDumper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
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        ";
Please login to merge, or discard this patch.
CodeGeneration/Fixtures/groupWithFieldSerializationFixture.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
src/EventSourcing/CodeGeneration/YamlDefinitionLoaderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/EventSourcing/AggregateRootRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.