| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 28 | public function run()  | 
            ||
| 29 |     { | 
            ||
| 30 | /* @var $model \yii\db\ActiveRecordInterface */  | 
            ||
| 31 | $model = Yii::$app->user->identity;  | 
            ||
| 32 | $model->scenario = $this->scenario;  | 
            ||
| 33 | $model->load(Yii::$app->getRequest()->getBodyParams(), '');  | 
            ||
| 34 |         if ($model->save() === false && !$model->hasErrors()) { | 
            ||
| 35 | throw new ServerErrorHttpException(  | 
            ||
| 36 | 'Failed to update the object for unknown reason.'  | 
            ||
| 37 | );  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 | return $model;  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 |