Goracash/goracash-api-php-client

View on GitHub
src/IO/Curl.php

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Method executeRequest has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function executeRequest(Request $request)
{
$curl = curl_init();
 
if ($request->getPostBody()) {
Severity: Major
Found in src/IO/Curl.php - About 2 hrs to fix

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

public function executeRequest(Request $request)
{
$curl = curl_init();
 
if ($request->getPostBody()) {
Severity: Minor
Found in src/IO/Curl.php - About 55 mins to fix
Category
Status