@@ -22,19 +22,19 @@ |
||
22 | 22 | */ |
23 | 23 | final class ToArrayConverter implements ConverterContract |
24 | 24 | { |
25 | - /** |
|
26 | - * Returns array representation of the object. |
|
27 | - * |
|
28 | - * @param object $obj Object to be converted |
|
29 | - * @param array $config Converter config array to be used for this object (based on exact class |
|
30 | - * name match or inheritance). |
|
31 | - * |
|
32 | - * @return array |
|
33 | - */ |
|
34 | - public function convert(object $obj, /** @scrutinizer ignore-unused */ array $config): array |
|
35 | - { |
|
36 | - Validator::assertIsObject('obj', $obj); |
|
25 | + /** |
|
26 | + * Returns array representation of the object. |
|
27 | + * |
|
28 | + * @param object $obj Object to be converted |
|
29 | + * @param array $config Converter config array to be used for this object (based on exact class |
|
30 | + * name match or inheritance). |
|
31 | + * |
|
32 | + * @return array |
|
33 | + */ |
|
34 | + public function convert(object $obj, /** @scrutinizer ignore-unused */ array $config): array |
|
35 | + { |
|
36 | + Validator::assertIsObject('obj', $obj); |
|
37 | 37 | |
38 | - return $obj->toArray(null); |
|
39 | - } |
|
38 | + return $obj->toArray(null); |
|
39 | + } |
|
40 | 40 | } |