@@ -59,14 +59,12 @@ discard block |
||
| 59 | 59 | * @package Platine\Framework\Form\Param |
| 60 | 60 | * @template TEntity as Entity |
| 61 | 61 | */ |
| 62 | -class BaseParam implements JsonSerializable |
|
| 63 | -{ |
|
| 62 | +class BaseParam implements JsonSerializable { |
|
| 64 | 63 | /** |
| 65 | 64 | * Create new instance |
| 66 | 65 | * @param array<string, mixed> $data |
| 67 | 66 | */ |
| 68 | - public function __construct(array $data = []) |
|
| 69 | - { |
|
| 67 | + public function __construct(array $data = []) { |
|
| 70 | 68 | // Load default values |
| 71 | 69 | $this->loadDefaultValues(); |
| 72 | 70 | |
@@ -126,8 +124,7 @@ discard block |
||
| 126 | 124 | * Convert parameter to JSON array |
| 127 | 125 | * @return array<string, mixed> |
| 128 | 126 | */ |
| 129 | - public function jsonSerialize() |
|
| 130 | - { |
|
| 127 | + public function jsonSerialize() { |
|
| 131 | 128 | return $this->data(); |
| 132 | 129 | } |
| 133 | 130 | |
@@ -136,8 +133,7 @@ discard block |
||
| 136 | 133 | * @param string $name |
| 137 | 134 | * @return mixed|null |
| 138 | 135 | */ |
| 139 | - public function __get($name) |
|
| 140 | - { |
|
| 136 | + public function __get($name) { |
|
| 141 | 137 | if (property_exists($this, $name)) { |
| 142 | 138 | return $this->{$name}; |
| 143 | 139 | } |
@@ -157,8 +153,7 @@ discard block |
||
| 157 | 153 | * @param mixed $value |
| 158 | 154 | * @return mixed |
| 159 | 155 | */ |
| 160 | - protected function getPropertyValue(string $attribute, $value) |
|
| 161 | - { |
|
| 156 | + protected function getPropertyValue(string $attribute, $value) { |
|
| 162 | 157 | $types = $this->getPropertyTypes(); |
| 163 | 158 | $property = $types[$attribute] ?? null; |
| 164 | 159 | if ($property === null) { |