Skip to content

executeRequest decodes response JSON thrice #32

@scop

Description

@scop

json_decode($response, true),
json_decode($response, true),
[]
);
return ['response_code' => $statusCode, 'response' => json_decode($response, true)];

executeRequest appears to decode the JSON response thrice; twice for logging, and once for the return value. Could refactor to make that happen only once.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions