Completed
Push — master ( 203e38...2cdd54 )
by Gerrit
13:04
created
Mapping/ObjectMappingInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -25,8 +25,14 @@
 block discarded – undo
25 25
      */
26 26
     public function getFieldMappings(): array;
27 27
 
28
+    /**
29
+     * @return null|CallDefinitionInterface
30
+     */
28 31
     public function getFactory(): ?CallDefinitionInterface;
29 32
 
33
+    /**
34
+     * @return null|CallDefinitionInterface
35
+     */
30 36
     public function getSerializer(): ?CallDefinitionInterface;
31 37
 
32 38
 }
Please login to merge, or discard this patch.
Tests/Mapping/ArrayMappingTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Addiks\RDMBundle\Mapping\ArrayMapping;
15 15
 use Addiks\RDMBundle\Mapping\MappingInterface;
16 16
 use Doctrine\DBAL\Schema\Column;
17
-use InvalidArgumentException;
18 17
 
19 18
 final class ArrayMappingTest extends TestCase
20 19
 {
Please login to merge, or discard this patch.
Tests/ValueObjectExample.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
         return [$this->scalarValue, $this->lorem, $this->dolor];
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $amet
64
+     */
62 65
     public function setAmet($amet)
63 66
     {
64 67
         $this->amet = $amet;
Please login to merge, or discard this patch.
ValueResolver/CallDefinitionExecuter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      * @param object                  $entity
112 112
      * @param array<scalar>           $dataFromAdditionalColumns
113 113
      *
114
-     * @return array<mixed>
114
+     * @return callable
115 115
      */
116 116
     private function resolveArguments(
117 117
         array $argumentMappings,
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,8 @@
 block discarded – undo
86 86
      *
87 87
      * @return object|string
88 88
      */
89
-    private function resolveCallee(string $objectReference, $entity) {
89
+    private function resolveCallee(string $objectReference, $entity)
90
+    {
90 91
         /** @var object|string $callee */
91 92
         $callee = null;
92 93
 
Please login to merge, or discard this patch.
Tests/Mapping/Drivers/MappingXmlDriverTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             'bar' => new ServiceMapping('other_service', false, "in file '{$mappingFilePath}'"),
65 65
             'baz' => new ChoiceMapping('baz_column', [
66 66
                 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"),
67
-                'ipsum' => new ServiceMapping("ipsum_service", true,  "in file '{$mappingFilePath}'"),
67
+                'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"),
68 68
             ], "in file '{$mappingFilePath}'"),
69 69
             'faz' => new ChoiceMapping(new Column("faz_column", Type::getType('string'), ['notnull' => true]), [
70 70
                 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"),
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 new CallDefinition("createValueObject", "@value_object.factory", [
130 130
                     new ChoiceMapping('baz_column', [
131 131
                         'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"),
132
-                        'ipsum' => new ServiceMapping("ipsum_service", true,  "in file '{$mappingFilePath}'"),
132
+                        'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"),
133 133
                     ], "in file '{$mappingFilePath}'")
134 134
                 ])
135 135
             ),
Please login to merge, or discard this patch.