| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 26 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 43 | public function search($params)  | 
            ||
| 44 |     { | 
            ||
| 45 | $query = Dashboard::find();  | 
            ||
| 46 | |||
| 47 | $dataProvider = new ActiveDataProvider([  | 
            ||
| 48 | 'query' => $query,  | 
            ||
| 49 | 'sort' => ['defaultOrder' => ['sort' => SORT_ASC]],  | 
            ||
| 50 | ]);  | 
            ||
| 51 | |||
| 52 | $this->load($params);  | 
            ||
| 53 | |||
| 54 |         if (!$this->validate()) { | 
            ||
| 55 | return $dataProvider;  | 
            ||
| 56 | }  | 
            ||
| 57 | |||
| 58 | $query->andFilterWhere([  | 
            ||
| 59 | 'id' => $this->id,  | 
            ||
| 60 | 'enabled' => $this->enabled,  | 
            ||
| 61 | 'sort' => $this->sort,  | 
            ||
| 62 | ]);  | 
            ||
| 63 | |||
| 64 | $query->andFilterWhere(['like', 'name', $this->name])  | 
            ||
| 65 | ->andFilterWhere(['like', 'layout_class', $this->layout_class]);  | 
            ||
| 66 | |||
| 67 | return $dataProvider;  | 
            ||
| 68 | }  | 
            ||
| 69 | |||
| 70 | }  |