Passed
Push — master ( f0c99e...e6fe94 )
by Andreas
11:48
created
lib/midcom/helper/reflector/main.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return static
53 53
      */
54
-    public static function get(string|object $src) : self
54
+    public static function get(string | object $src) : self
55 55
     {
56 56
         $identifier = static::class . (is_object($src) ? get_class($src) : $src);
57 57
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
         $label_prop = $this->get_label_property();
285 285
 
286
-        if (    $label_prop != 'guid'
286
+        if ($label_prop != 'guid'
287 287
              && $this->property_exists($label_prop)) {
288 288
             $search_properties[$label_prop] = true;
289 289
         }
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                 continue;
334 334
             }
335 335
 
336
-            if (   !$this->is_link($property)
336
+            if (!$this->is_link($property)
337 337
                 && $this->get_midgard_type($property) != MGD_TYPE_GUID) {
338 338
                 continue;
339 339
             }
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     protected static function class_rewrite(string $schema_type) : string
368 368
     {
369 369
         $extends = midcom_baseclasses_components_configuration::get('midcom.helper.reflector', 'config')->get_array('class_extends');
370
-        if (   isset($extends[$schema_type])
370
+        if (isset($extends[$schema_type])
371 371
             && class_exists($extends[$schema_type])) {
372 372
             return $extends[$schema_type];
373 373
         }
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     /**
388 388
      * Get the MgdSchema classname for given class
389 389
      */
390
-    public static function resolve_baseclass(string|object $classname) : string
390
+    public static function resolve_baseclass(string | object $classname) : string
391 391
     {
392 392
         static $cached = [];
393 393
 
Please login to merge, or discard this patch.