seregazhuk/php-headhunter-api

View on GitHub
src/Request.php

Summary

Maintainability
A
0 mins
Test Coverage

Only one argument is allowed per line in a multi-line function call
Open

            'POST', $uri, ['query' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'POST', $uri, ['query' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'POST', $uri, ['multipart' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'POST', $uri, ['json' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'POST', $uri, ['json' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'POST', $uri, ['multipart' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'PUT', $uri, ['query' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'PUT', $uri, ['query' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'PUT', $uri, ['json' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

            'PUT', $uri, ['json' => $params]
Severity: Minor
Found in src/Request.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return json_decode($response->getBody(), true);
Severity: Minor
Found in src/Request.php by phpcodesniffer

Inline control structures are not allowed
Open

        if ($token) $this->setToken($token);
Severity: Minor
Found in src/Request.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->headers = ['Authorization' => 'Bearer ' . $token];
Severity: Minor
Found in src/Request.php by phpcodesniffer

There are no issues that match your filters.

Category
Status