Completed
Push — master ( 8f27a0...b38e30 )
by Jelle
07:22 queued 02:58
created
src/Entity/EntityManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -182,6 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
   /**
184 184
    * Initializes the property map.
185
+   * @param string $entityType
185 186
    */
186 187
   protected function initPropertyMap($entityType) {
187 188
     $this->propertyMaps[$entityType] = new Map();
@@ -191,12 +192,20 @@  discard block
 block discarded – undo
191 192
         $transform = $args[2][0];
192 193
         $reverse = $args[2][1];
193 194
         $args[2] = new Callback(
195
+
196
+          /**
197
+           * @param string $value
198
+           */
194 199
           function($value, $context) use ($entityManager, $transform) {
195 200
             if ($entityManager->isEmptyValue($value)) {
196 201
               return $value;
197 202
             }
198 203
             return call_user_func_array($transform, array($value, $context, $entityManager));
199 204
           },
205
+
206
+          /**
207
+           * @param string $value
208
+           */
200 209
           function($value, $context) use ($entityManager, $reverse) {
201 210
             if ($entityManager->isEmptyValue($value)) {
202 211
               return $value;
Please login to merge, or discard this patch.
src/Entity/Factory/Factory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 namespace TheSportsDb\Entity\Factory;
8 8
 
9
-use FastNorth\PropertyMapper\MapperInterface;
10 9
 use TheSportsDb\Entity\EntityInterface;
11 10
 use TheSportsDb\Entity\EntityManagerConsumerTrait;
12 11
 use TheSportsDb\Entity\EntityManagerInterface;
Please login to merge, or discard this patch.