| Conditions | 7 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 47 | public function run() |
||
| 48 | { |
||
| 49 | if ($this->layout !== null) { |
||
| 50 | $this->controller->layout = $this->layout; |
||
| 51 | } |
||
| 52 | $model = new FileStateForm(); |
||
| 53 | if (($post = Yii::$app->request->post()) && $model->load($post) && $model->validate() && $model->save()) { |
||
| 54 | return $this->controller->refresh(); |
||
|
|
|||
| 55 | } |
||
| 56 | return $this->controller->render($this->view ?: $this->id, $this->getViewRenderParams($model)); |
||
| 57 | } |
||
| 80 |