apimatic/core-lib-php

View on GitHub
src/Request/Parameters/EncodedParam.php

Summary

Maintainability
A
3 hrs
Test Coverage
A
100%

Method httpBuildQuery has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function httpBuildQuery(array $data, string $format, string $parent = ''): string
    {
        if ($format == RequestArraySerialization::INDEXED) {
            return http_build_query($data);
        }
Severity: Minor
Found in src/Request/Parameters/EncodedParam.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return;
    Severity: Major
    Found in src/Request/Parameters/EncodedParam.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return implode($separatorFormat ? '' : '&', $result);
      Severity: Major
      Found in src/Request/Parameters/EncodedParam.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return;
        Severity: Major
        Found in src/Request/Parameters/EncodedParam.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status