Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 8 | public function attributesToProperties(?Model $model = null, mixed $rescue = null): void |
|
22 | { |
||
23 | 8 | collect($model?->getAttributes()) |
|
|
|||
24 | 8 | ->except($this->ignoreKeys()) |
|
25 | 8 | ->each( |
|
26 | 8 | fn ($value, $property) => $this->assignValue( |
|
27 | $property, |
||
28 | 8 | $model->{$property}, |
|
29 | $rescue |
||
30 | ) |
||
55 |