@@ -28,11 +28,11 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public static function getPropertyValue(object $object, string $propertyName) |
| 30 | 30 | { |
| 31 | - if(static::hasPropertyAccessibleByGetter($object, $propertyName)) { |
|
| 31 | + if (static::hasPropertyAccessibleByGetter($object, $propertyName)) { |
|
| 32 | 32 | return static::getPropertyValueByGetter($object, $propertyName); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - if(static::hasPublicProperty($object, $propertyName)) { |
|
| 35 | + if (static::hasPublicProperty($object, $propertyName)) { |
|
| 36 | 36 | return $object->{$propertyName}; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public static function setPropertyValue(object $object, string $propertyName, $value): void |
| 56 | 56 | { |
| 57 | - if(static::hasPropertyAccessibleBySetter($object, $propertyName)) { |
|
| 57 | + if (static::hasPropertyAccessibleBySetter($object, $propertyName)) { |
|
| 58 | 58 | static::setPropertyValueBySetter($object, $propertyName, $value); |
| 59 | 59 | return; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - if(static::hasPublicProperty($object, $propertyName) || $object instanceof stdClass) { |
|
| 62 | + if (static::hasPublicProperty($object, $propertyName) || $object instanceof stdClass) { |
|
| 63 | 63 | $object->{$propertyName} = $value; |
| 64 | 64 | return; |
| 65 | 65 | } |