Completed
Branch master (6f1615)
by Jelle
06:32 queued 03:43
created
src/Entity/Repository/Repository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
    */
49 49
   public function byId($id) {
50 50
     if (!isset($this->repository[$id])) {
51
-      $factory =  $this->entityManager->factory($this->getEntityTypeName());
51
+      $factory = $this->entityManager->factory($this->getEntityTypeName());
52 52
       $this->repository[$id] = $factory->create(
53 53
         (object) array('id' => $id),
54 54
         $this->getEntityTypeName(),
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
       $entity->update($mapped);
80 80
       return $entity;
81 81
     }
82
-    $factory =  $this->entityManager->factory($this->getEntityTypeName());
82
+    $factory = $this->entityManager->factory($this->getEntityTypeName());
83 83
     $this->repository[$mapped->id] = $factory->create($mapped, $this->getEntityTypeName(), FALSE);
84 84
     return $this->repository[$mapped->id];
85 85
   }
Please login to merge, or discard this patch.