Controller/ExceptionController.php
Avoid unused parameters such as '$request'. Open
Open
Request $request,
- Read upRead up
- Exclude checks
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
Open
DebugLoggerInterface $logger = NULL
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
There must be one USE keyword per declaration Open
Open
use Symfony\Component\HttpFoundation\Request,
- Exclude checks
There must be one USE keyword per declaration Open
Open
use GoIntegro\Bundle\HateoasBundle\Controller\CommonResponseTrait,
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if (500 == $error->status && NULL != $logger) {
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
Open
const ERROR_LOG_MESSAGE_PATTERN = "The HATEOAS API is responding with the error \"%s\" in %s:%s. (Occurrence UUID %s.)";
- Exclude checks