| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class PermissionSearch extends Permission |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Modify for custom search rules. |
||
| 16 | * |
||
| 17 | * @inheritdoc |
||
| 18 | */ |
||
| 19 | public function rules() |
||
| 20 | { |
||
| 21 | return []; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Creates data provider |
||
| 26 | * |
||
| 27 | * @param array $params |
||
| 28 | * |
||
| 29 | * @return ArrayDataProvider |
||
| 30 | */ |
||
| 31 | public function search($params) |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.