Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function search(Account $model, array $params = []) |
||
|
|||
19 | { |
||
20 | $dateRange = DateHelper::getRangeFromUrl(); |
||
21 | list($from, $to) = DateHelper::normalizeRange($dateRange); |
||
22 | |||
23 | $dataProvider = Yii::createObject([ |
||
24 | 'class' => AccountAccountsDataProvider::class, |
||
25 | 'account' => $model, |
||
26 | 'from' => $from, |
||
27 | 'to' => $to, |
||
28 | ]); |
||
29 | |||
30 | |||
31 | return $dataProvider; |
||
32 | } |
||
34 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.