Completed
Push — master ( 2c21ba...8825d1 )
by Pieter
06:57
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
         SchemaSynchronizer $tableGenerator,
24 23
         NameGenerator $tableNameGenerator,
@@ -43,7 +42,7 @@  discard block
 block discarded – undo
43 42
         $tableName = $this->tableNameGenerator->generate($metadata->getName());
44 43
         $record = $metadata->createRecord($recordData);
45 44
 
46
-        $types = array_map(function (ReadModelField $field) {
45
+        $types = array_map(function(ReadModelField $field) {
47 46
             return $this->dbalTypeMapper->mapReadModelToDbalType($field->getDataType());
48 47
         }, $metadata->getFields());
49 48
 
Please login to merge, or discard this patch.
src/RapidoAdapter/DoctrineDbalStorage/SchemaSynchronizer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
     private $idColumnName;
17 17
     private $columnFactory;
18 18
 
19
-    public function __construct
20
-    (
19
+    public function __construct(
21 20
         AbstractSchemaManager $schemaManager,
22 21
         Comparator $schemaComparator,
23 22
         NameGenerator $tableNameGenerator,
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!($loader = include __DIR__ . '/../vendor/autoload.php')) {
3
+if (!($loader = include __DIR__.'/../vendor/autoload.php')) {
4 4
     die(<<<EOT
5 5
 You need to install the project dependencies using Composer:
6 6
 $ wget http://getcomposer.org/composer.phar
Please login to merge, or discard this patch.
tests/RapidoBundle/Config/TestKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 
18 18
     public function registerContainerConfiguration(LoaderInterface $loader)
19 19
     {
20
-        new \PDO('sqlite:' . __DIR__ . '/sqlite.db');
21
-        $loader->load(__DIR__ . '/config.yml');
20
+        new \PDO('sqlite:'.__DIR__.'/sqlite.db');
21
+        $loader->load(__DIR__.'/config.yml');
22 22
     }
23 23
 
24 24
     protected function build(ContainerBuilder $container)
Please login to merge, or discard this patch.
tests/RapidoBundle/StorageWriterTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     public static function setUpBeforeClass()
25 25
     {
26
-        unlink(__DIR__ . '/Config/sqlite.db');
26
+        unlink(__DIR__.'/Config/sqlite.db');
27 27
     }
28 28
 
29 29
     protected function setUp()
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
                 new ReadModelField('f1', new Boolean()),
44 44
                 new ReadModelField('f2', new TextString(10)),
45 45
             ],
46
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
47
-            function () {}
46
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
47
+            function() {}
48 48
         );
49 49
 
50 50
         $this->writer->writeRecord($meta, ['id' => 1, 'f1' => true, 'f2' => 'test']);
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
                 new ReadModelField('f2', new TextString(10)),
65 65
                 new ReadModelField('f3', new TextString(10)),
66 66
             ],
67
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2'], 'f3' => $data['f2']]); },
68
-            function () {}
67
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2'], 'f3' => $data['f2']]); },
68
+            function() {}
69 69
         );
70 70
 
71 71
         $this->writer->writeRecord($meta, ['id' => 2, 'f1' => true, 'f2' => 'test']);
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
                 new ReadModelField('f1', new Boolean()),
85 85
                 new ReadModelField('f2', new TextString(10))
86 86
             ],
87
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
88
-            function () {}
87
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
88
+            function() {}
89 89
         );
90 90
 
91 91
         $this->writer->writeRecord($meta, ['id' => 2, 'f1' => true, 'f2' => 'test2']);
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
                 new ReadModelField('f1', new Boolean()),
105 105
                 new ReadModelField('f2', new TextString(10)),
106 106
             ],
107
-            function ($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
108
-            function () {},
107
+            function($data) { return new Record($data['id'], ['f1' => $data['f1'], 'f2' => $data['f2']]); },
108
+            function() {},
109 109
             'created_at'
110 110
         );
111 111
 
Please login to merge, or discard this patch.
src/Rapido/ReadModel/ReadModelConfiguration.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
     public function generateSnapshot() { return $this->snapshotColumnName !== null; }
22 22
     public function getSnapshotColumnName() { return $this->snapshotColumnName; }
23 23
 
24
-    public function __construct
25
-    (
24
+    public function __construct(
26 25
         $name,
27 26
         ReadModelId $id,
28 27
         array $fields,
Please login to merge, or discard this patch.
src/RapidoBundle/DependencyInjection/RapidoExtension.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
         $container->setParameter('rapido.table_name_suffix', $config['table_name_suffix']);
18 18
         $container->setParameter('rapido.id_column_name', $config['id_column_name']);
19 19
 
20
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
20
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
21 21
         $loader->load('services.xml');
22 22
     }
23 23
 
Please login to merge, or discard this patch.
src/RapidoAdapter/DoctrineDbalStorage/NameGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
 
16 16
     public function generate($id)
17 17
     {
18
-        return $this->prefix . (string) $id;
18
+        return $this->prefix.(string) $id;
19 19
     }
20 20
 
21 21
     public function generateWithSuffix($id)
22 22
     {
23
-        return $this->generate($id) . $this->suffix;
23
+        return $this->generate($id).$this->suffix;
24 24
     }
25 25
 }
Please login to merge, or discard this patch.