@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | private static function getSetterType($object, string $property): ?string |
66 | 66 | { |
67 | - $method = 'set' . ucfirst($property); |
|
67 | + $method = 'set'.ucfirst($property); |
|
68 | 68 | if (!method_exists($object, $method)) { |
69 | 69 | return null; |
70 | 70 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | private static function setProperty(object $instance, string $property, $value): void |
96 | 96 | { |
97 | - $setter = 'set' . ucfirst($property); |
|
97 | + $setter = 'set'.ucfirst($property); |
|
98 | 98 | if (!method_exists($instance, $setter)) { |
99 | 99 | if (property_exists($instance, $property)) { |
100 | 100 | $instance->$property = $value; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | if ($name === 'array') { |
123 | 123 | $props = get_object_vars($value); |
124 | - $arr = count($props) === 1 ? current($props) : (array)$value; |
|
124 | + $arr = count($props) === 1 ? current($props) : (array) $value; |
|
125 | 125 | return is_array($arr) ? $arr : [$arr]; |
126 | 126 | } |
127 | 127 | } |
@@ -18,9 +18,9 @@ |
||
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 = TypeConverter::convertValueToExpectedType($this, $value, $name); |
23 | - $this->{"set" . ucfirst($name)}($convertedValue); |
|
23 | + $this->{"set".ucfirst($name)}($convertedValue); |
|
24 | 24 | return; |
25 | 25 | } |
26 | 26 |