src/Plugins/Response.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to undeclared method \Mvc5\Plugins\Response::plugin
Open

        return $this->plugin(RESPONSE_JSON, [$data, $status, $headers]);
Severity: Critical
Found in src/Plugins/Response.php by phan

Doc-block of redirect contains declared return type mixed which is incompatible with the return type \Mvc5\Http\Response declared in the signature
Open

     * @return Http\Response|\Mvc5\Response\RedirectResponse|mixed
Severity: Minor
Found in src/Plugins/Response.php by phan

Call to undeclared method \Mvc5\Plugins\Response::plugin
Open

        return $this->plugin(RESPONSE, [$body, $status, $headers, $config]);
Severity: Critical
Found in src/Plugins/Response.php by phan

Possibly zero references to protected method \Mvc5\Plugins\Response::json()
Open

    protected function json($data, int $status = 200, array $headers = []) : Http\Response
Severity: Minor
Found in src/Plugins/Response.php by phan

Possibly zero references to protected method \Mvc5\Plugins\Response::response()
Open

    protected function response($body = null, int $status = null, $headers = [], array $config = []) : Http\Response
Severity: Minor
Found in src/Plugins/Response.php by phan

Possibly zero references to protected method \Mvc5\Plugins\Response::redirect()
Open

    protected function redirect($url, int $status = 302, array $headers = [], array $config = []) : Http\Response
Severity: Minor
Found in src/Plugins/Response.php by phan

Doc-block of response contains declared return type mixed which is incompatible with the return type \Mvc5\Http\Response declared in the signature
Open

     * @return Http\Response|\Mvc5\Response\Response|mixed
Severity: Minor
Found in src/Plugins/Response.php by phan

Call to undeclared method \Mvc5\Plugins\Response::plugin
Open

        return $this->plugin(RESPONSE_REDIRECT, [$url, $status, $headers, $config]);
Severity: Critical
Found in src/Plugins/Response.php by phan

Possibly zero references to class \Mvc5\Plugins\Response
Open

trait Response
Severity: Minor
Found in src/Plugins/Response.php by phan

Doc-block of json contains declared return type mixed which is incompatible with the return type \Mvc5\Http\Response declared in the signature
Open

     * @return Http\Response|\Mvc5\Response\JsonResponse|mixed
Severity: Minor
Found in src/Plugins/Response.php by phan

There are no issues that match your filters.

Category
Status