Completed
Push — master ( b36efb...11b790 )
by Mr
02:17
created

Error   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A action_index() 0 3 1
1
<?php
2
3
namespace DrMVC\Controllers;
4
5
use \Psr\Http\Message\ServerRequestInterface as Request;
6
use \Psr\Http\Message\ResponseInterface as Response;
7
8
class Error
9
{
10
    public function action_index(Request $request, Response $response)
0 ignored issues
show
Unused Code introduced by
The parameter $response is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

10
    public function action_index(Request $request, /** @scrutinizer ignore-unused */ Response $response)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

10
    public function action_index(/** @scrutinizer ignore-unused */ Request $request, Response $response)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
11
    {
12
        echo 'error';
13
    }
14
}
15