PHPixie/HTTP

View on GitHub
src/PHPixie/HTTP/Messages.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method serverRequest has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

        $protocolVersion,
        $headers,
        $body,
        $method,
        $uri,
Severity: Major
Found in src/PHPixie/HTTP/Messages.php - About 1 hr to fix

    Method sapiServerRequest has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            $server = null,
            $get = null,
            $post = null,
            $cookie = null,
            $files = null,
    Severity: Minor
    Found in src/PHPixie/HTTP/Messages.php - About 45 mins to fix

      Method response has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function response($protocolVersion, $headers, $body, $statusCode = 200, $reasonPhrase = null)
      Severity: Minor
      Found in src/PHPixie/HTTP/Messages.php - About 35 mins to fix

        Method request has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function request($protocolVersion, $headers, $body, $method, $uri)
        Severity: Minor
        Found in src/PHPixie/HTTP/Messages.php - About 35 mins to fix

          Method uploadedFile has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  $file,
                  $clientFilename = null,
                  $clientMediaType = null,
                  $size = null,
                  $error = UPLOAD_ERR_OK
          Severity: Minor
          Found in src/PHPixie/HTTP/Messages.php - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status