Passed
Push — master ( ece84a...599088 )
by Andreas
24:50
created
lib/midcom/helper/_dbfactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
             throw new midcom_error_midgard($e, $guid);
70 70
         }
71
-        if (   get_class($tmp) == 'midgard_person'
71
+        if (get_class($tmp) == 'midgard_person'
72 72
             && $this->person_class != 'midgard_person') {
73 73
             $tmp = new $this->person_class($guid);
74 74
         }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         }
99 99
         $object = new $classname($src);
100 100
         $cache[$classname][$object->guid] = $object;
101
-        $cache[$classname][$object->id] =& $cache[$classname][$object->guid];
101
+        $cache[$classname][$object->id] = & $cache[$classname][$object->guid];
102 102
         return $cache[$classname][$object->guid];
103 103
     }
104 104
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             return true;
146 146
         }
147 147
 
148
-        if (   isset($object->__object)
148
+        if (isset($object->__object)
149 149
             && is_object($object->__object)
150 150
             && $object->__object instanceof $class) {
151 151
             // Decorator whose MgdSchema object matches
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             return $this->get_parent_data_uncached($object);
169 169
         });
170 170
 
171
-        if (   empty($parent_guid)
171
+        if (empty($parent_guid)
172 172
             || $parent_guid === $object->guid) {
173 173
             return null;
174 174
         }
Please login to merge, or discard this patch.