AOEpeople/StackFormation

View on GitHub
src/AwsInspector/Helper/Curl.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 3 of 3 total issues

Method doRequest has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function doRequest() {
$this->responseHeaders = [];
$this->responseBody = [];
 
$command = $this->getCurlCommand();
Severity: Minor
Found in src/AwsInspector/Helper/Curl.php - About 1 hr to fix

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

    public function doRequest() {
    $this->responseHeaders = [];
    $this->responseBody = [];
     
    $command = $this->getCurlCommand();
    Severity: Minor
    Found in src/AwsInspector/Helper/Curl.php - About 55 mins to fix

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

    protected function parseHeader($line) {
    $line = trim($line);
    if (empty($line)) {
    return;
    }
    Severity: Minor
    Found in src/AwsInspector/Helper/Curl.php - About 25 mins to fix
    Category
    Status