symplely/coroutine

View on GitHub
Coroutine/Socket.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method net_listen has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    $handle,
    int $handlerTask,
    int $backlog = 0,
    ?string $ssl_path = None,
    ?string $ssl_file = None,
Severity: Major
Found in Coroutine/Socket.php - About 50 mins to fix

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

        $object,
        string $method = 'GET',
        string $path = '/',
        ?string $type = 'text/html',
        $data = null,
    Severity: Minor
    Found in Coroutine/Socket.php - About 45 mins to fix

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

          string $purpose,
          ?string $name = None,
          $context = [],
          ?string $capath = None,
          ?string $cafile = None,
      Severity: Minor
      Found in Coroutine/Socket.php - About 45 mins to fix

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

            $object,
            ?string $body = null,
            ?int $status = null,
            ?string $type = 'text/html',
            array ...$extra
        Severity: Minor
        Found in Coroutine/Socket.php - About 35 mins to fix

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

              $uri = null,
              ?OptionsInterface $context = null,
              ?string $capath = None,
              ?string $cafile = None,
              array $caSelfDetails = []
          Severity: Minor
          Found in Coroutine/Socket.php - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status