Goracash/goracash-api-php-client

View on GitHub
src/Http/Request.php

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 3 of 3 total issues

Request has 34 functions (exceeds 20 allowed). Consider refactoring.
Open

class Request
{
const GZIP_UA = " (gzip)";
 
protected $queryParams;
Severity: Minor
Found in src/Http/Request.php - About 4 hrs to fix

Function buildQuery has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

private function buildQuery($parts)
{
$return = array();
foreach ($parts as $key => $value) {
if (is_array($value)) {
Severity: Minor
Found in src/Http/Request.php - About 35 mins to fix

Function parseQuery has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

private function parseQuery($string)
{
$return = array();
$parts = explode("&", $string);
foreach ($parts as $part) {
Severity: Minor
Found in src/Http/Request.php - About 35 mins to fix
Category
Status