skqr/hateoas-bundle

View on GitHub
Controller/ExceptionController.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$request'.
Open

        Request $request,
Severity: Minor
Found in Controller/ExceptionController.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

        DebugLoggerInterface $logger = NULL

The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
Open

    {

There must be one USE keyword per declaration
Open

use Symfony\Component\HttpFoundation\Request,

There must be one USE keyword per declaration
Open

use GoIntegro\Bundle\HateoasBundle\Controller\CommonResponseTrait,

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

        if (500 == $error->status && NULL != $logger) {

Line exceeds 120 characters; contains 124 characters
Open

    const ERROR_LOG_MESSAGE_PATTERN = "The HATEOAS API is responding with the error \"%s\" in %s:%s. (Occurrence UUID %s.)";

There are no issues that match your filters.

Category
Status