| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 4 | public function register(Container $dic) |
|
| 44 | { |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | 1 | $dic['Paths'] = function($dic) { |
|
|
|
|||
| 50 | 5 | return $this->paths; |
|
| 51 | }; |
||
| 52 | |||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Callable |
||
| 56 | */ |
||
| 57 | 1 | $dic['Paths.Prefixer'] = function($dic) { |
|
| 58 | 5 | return $this->prefixer; |
|
| 59 | }; |
||
| 60 | |||
| 61 | |||
| 62 | /** |
||
| 63 | * @return array |
||
| 64 | */ |
||
| 65 | 2 | $dic['Paths.absolute'] = function ($dic) { |
|
| 66 | 5 | $paths = $dic['Paths']; |
|
| 67 | 5 | $prefixer = $dic['Paths.Prefixer']; |
|
| 68 | |||
| 69 | 5 | return $prefixer( $paths ); |
|
| 70 | }; |
||
| 71 | |||
| 72 | 5 | } |
|
| 73 | } |
||
| 75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.