TestController::myAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 3
1
<?php
2
3
namespace Mouf\Mvc\Splash\Fixtures;
4
5
use Psr\Http\Message\RequestInterface;
6
use Mouf\Mvc\Splash\Annotations\URL;
7
8
class TestController
9
{
10
    /**
11
     * @URL("/myurl")
12
     *
13
     * @param RequestInterface $request
14
     * @param string           $compulsory
15
     * @param int              $id
16
     */
17
    public function myAction(RequestInterface $request, $compulsory, $id = null)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

This check looks from 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 $compulsory is not used and could be removed.

This check looks from 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 $id is not used and could be removed.

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

Loading history...
18
    {
19
    }
20
}
21