@@ -51,7 +51,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -46,7 +46,8 @@ |
||
46 | 46 | $customer_html = '<a href="' . $contacts_url . '/group/' . $customer->guid . '/">' . $customer_html . "</a>\n"; |
47 | 47 | } |
48 | 48 | echo $customer_html; |
49 | - } catch (midcom_error) { |
|
49 | + } |
|
50 | + catch (midcom_error) { |
|
50 | 51 | } |
51 | 52 | |
52 | 53 | if ($project->manager) { |