@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | $value = $value->Entry; |
19 | 19 | } |
20 | 20 | |
21 | - if ($this->methodExists("set" . ucfirst($name))) { |
|
21 | + if ($this->methodExists("set".ucfirst($name))) { |
|
22 | 22 | $convertedValue = $this->convertValueToExpectedType($value, $name); |
23 | - $this->{"set" . ucfirst($name)}($convertedValue); |
|
23 | + $this->{"set".ucfirst($name)}($convertedValue); |
|
24 | 24 | return; |
25 | 25 | } |
26 | 26 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | private function getExpectedTypeFromSetter(string $propertyName): ?string |
73 | 73 | { |
74 | - $methodName = "set" . ucfirst($propertyName); |
|
74 | + $methodName = "set".ucfirst($propertyName); |
|
75 | 75 | |
76 | 76 | if (!method_exists($this, $methodName)) { |
77 | 77 | return null; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public static function convertToType($value, string $targetType) |
19 | 19 | { |
20 | 20 | if (is_array($value)) { |
21 | - return array_map(function ($item) use ($targetType) { |
|
21 | + return array_map(function($item) use ($targetType) { |
|
22 | 22 | return self::convertSingleObject($item, $targetType); |
23 | 23 | }, $value); |
24 | 24 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | private static function setProperty(object $instance, string $property, $value): void |
64 | 64 | { |
65 | 65 | // Try setter method first |
66 | - $setterMethod = 'set' . ucfirst($property); |
|
66 | + $setterMethod = 'set'.ucfirst($property); |
|
67 | 67 | if (method_exists($instance, $setterMethod)) { |
68 | 68 | $instance->$setterMethod($value); |
69 | 69 | return; |