Goracash/goracash-api-php-client

View on GitHub
src/Service.php

Summary

Maintainability
A
25 mins
Test Coverage

Showing 1 of 1 total issue

Function normalize has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

protected function normalize(Response $response)
{
$data = (array)json_decode($response->body, true);
if (!$data || $data['status'] != 'ok') {
$this->client->getLogger()->error('Service error:', $data);
Severity: Minor
Found in src/Service.php - About 25 mins to fix
Category
Status