Conditions | 4 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
22 | public function run() |
||
23 | { |
||
24 | $model = $this->findModel($this->modelClass ?: $this->controller->viewClass); |
||
25 | if ($this->updateIfPost && Yii::$app->request->isPost) { |
||
26 | return $this->controller->runAction($this->updateAction, $this->params); |
||
27 | } |
||
28 | return $this->controller->render($this->view, ['model' => $model]); |
||
29 | } |
||
30 | } |