TestController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A myAction() 0 3 1
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