Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function afterAction() |
||
29 | { |
||
30 | if (!Yii::$app->user->isGuest) { |
||
31 | /** @var \yii\web\IdentityInterface $model */ |
||
32 | $model = Yii::$app->user->identity; |
||
33 | /** @var \yii\behaviors\TimestampBehavior $model Updates a timestamp attribute to the current timestamp. */ |
||
34 | $model->touch('last_visit'); |
||
35 | } |
||
36 | return true; |
||
37 | } |
||
39 |