Skip to content

Commit

Permalink
ApiRest: Fix codestyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Apr 26, 2021
1 parent 9a1fb23 commit b6adaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiRest.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private function callApi(string $method, IModel|iterable $object): array|string|
];

if ($object instanceof IModel) {
$path = explode('\\', get_class($object));
$path = explode('\\', $object::class);
$xmlArray[lcfirst(array_pop($path))] = $object->toArray();
} elseif (is_array($object)) {
$xmlArray += $object;
Expand Down

0 comments on commit b6adaa5

Please sign in to comment.