Skip to content

Commit

Permalink
chore: refactor into general key/value
Browse files Browse the repository at this point in the history
  • Loading branch information
ju5t committed May 31, 2024
1 parent bad10f9 commit a1cd0f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ protected function process(Response $response): array
} catch (JsonException) {
$content = collect(explode('&', urldecode($response->body())))
->map(function ($item) {
[$domain, $user] = explode('=', $item);
[$value, $key] = explode('=', $item);

return [$user => $domain];
return [$key => $value];
})
->toArray();
}
Expand Down

0 comments on commit a1cd0f4

Please sign in to comment.