| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | final class ViewSituations |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param $params |
||
| 9 | * |
||
| 10 | * @return mixed |
||
| 11 | */ |
||
| 12 | public function normalize($method, $params) |
||
|
|
|||
| 13 | { |
||
| 14 | 21 | array_walk($params, function ($view) { |
|
| 15 | 21 | $this->checkViewExists($view); |
|
| 16 | 21 | }); |
|
| 17 | |||
| 18 | 20 | return [$params]; |
|
| 19 | } |
||
| 20 | |||
| 21 | 21 | private function checkViewExists($view) |
|
| 25 | } |
||
| 26 | 20 | } |
|
| 28 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.