Completed
Push — master ( 2723b8...b8ac50 )
by Jelle
03:22
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.
src/Entity/Proxy/Proxy.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
           $this->_raw->{$prop} = $val;
48 48
           if (method_exists($val, 'raw')) {
49 49
             $this->_raw->{$prop} = $val->raw();
50
-          }
51
-          elseif (is_array($val)) {
50
+          } elseif (is_array($val)) {
52 51
             $this->_raw->{$prop} = array();
53 52
             foreach ($val as $v) {
54 53
               $this->_raw->{$prop}[] = method_exists($v, 'raw') ? $v->raw() : $v;
Please login to merge, or discard this patch.