| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 5 | public function run(): DataProviderInterface | ARContractSearch |
|
| 40 | { |
||
| 41 | /** @var ARContractSearch $searchModel */ |
||
| 42 | 5 | $searchModel = Instance::ensure( |
|
| 43 | 5 | ['class' => $this->searchClass], |
|
| 44 | 5 | ARContractSearch::class |
|
| 45 | ); |
||
| 46 | 5 | $dataProvider = $searchModel->search( |
|
| 47 | 5 | Yii::$app->request->getQueryParams(), |
|
| 48 | 5 | $this->formName |
|
| 49 | ); |
||
| 50 | 4 | $this->checkAccess($searchModel, Yii::$app->request->getQueryParams()); |
|
| 51 | |||
| 52 | 4 | return $dataProvider ?: $searchModel; |
|
| 53 | } |
||
| 55 |