Passed
Push — master ( 96594d...1245aa )
by Pieter
04:30
created
src/RapidoAdapter/DoctrineDbalStorage/DoctrineDbalStorageWriter.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
     private $idColumnName;
18 18
     private $dbalTypeMapper;
19 19
 
20
-    public function __construct
21
-    (
20
+    public function __construct(
22 21
         Connection $connection,
23 22
         NameGenerator $tableNameGenerator,
24 23
         $idColumnName,
@@ -39,7 +38,7 @@  discard block
 block discarded – undo
39 38
         $rowData = array_merge([$this->idColumnName => $record->getId()], $record->getData());
40 39
 
41 40
         $idType = $this->dbalTypeMapper->mapReadModelToDbalType($metadata->getId()->getDataType());
42
-        $types = array_merge([$idType], array_map(function (ReadModelField $field) {
41
+        $types = array_merge([$idType], array_map(function(ReadModelField $field) {
43 42
             return $this->dbalTypeMapper->mapReadModelToDbalType($field->getDataType());
44 43
         }, $metadata->getFields()));
45 44
 
Please login to merge, or discard this patch.
tests/RapidoBundle/StorageWriterTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public static function setUpBeforeClass()
29 29
     {
30
-        unlink(__DIR__ . '/Config/sqlite.db');
30
+        unlink(__DIR__.'/Config/sqlite.db');
31 31
     }
32 32
 
33 33
     protected function setUp()
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
                 new ReadModelField('f1', new Boolean()),
49 49
                 new ReadModelField('f2', new TextString(10)),
50 50
             ],
51
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
52
-            function () {}
51
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
52
+            function() {}
53 53
         );
54 54
 
55 55
         $this->synchronizer->ensureTableExists($meta);
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
             [
69 69
                 new ReadModelField('f1', new TextString(10), true),
70 70
             ],
71
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1']]); },
72
-            function () {}
71
+            function($data) { return new Record($data['id'], ['f1' => $data['f1']]); },
72
+            function() {}
73 73
         );
74 74
 
75 75
         $this->synchronizer->ensureTableExists($meta);
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
                 new ReadModelField('f2', new TextString(10)),
90 90
                 new ReadModelField('f3', new TextString(10)),
91 91
             ],
92
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2'], 'f3' => $data['f2']]); },
93
-            function () {}
92
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2'], 'f3' => $data['f2']]); },
93
+            function() {}
94 94
         );
95 95
 
96 96
         $this->synchronizer->ensureTableExists($meta);
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
                 new ReadModelField('f1', new Boolean()),
111 111
                 new ReadModelField('f2', new TextString(10))
112 112
             ],
113
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
114
-            function () {}
113
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
114
+            function() {}
115 115
         );
116 116
 
117 117
         $this->synchronizer->ensureTableExists($meta);
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
                 new ReadModelField('f1', new Boolean()),
132 132
                 new ReadModelField('f2', new TextString(10)),
133 133
             ],
134
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
135
-            function () {},
134
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
135
+            function() {},
136 136
             'created_at'
137 137
         );
138 138
 
Please login to merge, or discard this patch.