Passed
Push — master ( 83cee0...2131d7 )
by Andreas
19:23
created
lib/midcom/helper/_dbfactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             throw new midcom_error_midgard($e, $guid);
50 50
         }
51 51
         $person_class = midcom::get()->config->get('person_class');
52
-        if (   get_class($tmp) == 'midgard_person'
52
+        if (get_class($tmp) == 'midgard_person'
53 53
             && $person_class != 'midgard_person') {
54 54
             $tmp = new $person_class($guid);
55 55
         }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         }
80 80
         $object = new $classname($src);
81 81
         $cache[$classname][$object->guid] = $object;
82
-        $cache[$classname][$object->id] =& $cache[$classname][$object->guid];
82
+        $cache[$classname][$object->id] = & $cache[$classname][$object->guid];
83 83
         return $cache[$classname][$object->guid];
84 84
     }
85 85
 
@@ -127,14 +127,14 @@  discard block
 block discarded – undo
127 127
             return true;
128 128
         }
129 129
 
130
-        if (   isset($object->__object)
130
+        if (isset($object->__object)
131 131
             && is_object($object->__object)
132 132
             && $object->__object instanceof $class) {
133 133
             // Decorator whose MgdSchema object matches
134 134
             return true;
135 135
         }
136 136
 
137
-        if (   isset($object->__mgdschema_class_name__)
137
+        if (isset($object->__mgdschema_class_name__)
138 138
             && $object->__mgdschema_class_name__ == $class) {
139 139
             // Decorator without object instantiated, check class match
140 140
             return true;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             return $this->get_parent_data_uncached($object);
157 157
         });
158 158
 
159
-        if (   empty($parent_guid)
159
+        if (empty($parent_guid)
160 160
             || $parent_guid === $object->guid) {
161 161
             return null;
162 162
         }
Please login to merge, or discard this patch.