Goracash/goracash-api-php-client

View on GitHub
src/Client.php

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Client has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

class Client
{
const LIBVER = "1.0.0";
const USER_AGENT_SUFFIX = "goracash-api-php-client/";
 
Severity: Minor
Found in src/Client.php - About 2 hrs to fix

Function __construct has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

public function __construct($config = null)
{
if (is_string($config) && strlen($config)) {
$config = new Config($config);
}
Severity: Minor
Found in src/Client.php - About 55 mins to fix
Category
Status