| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function afterAction() |
||
| 32 | { |
||
| 33 | if (!Yii::$app->user->isGuest) { |
||
| 34 | /** @var IdentityInterface $model */ |
||
| 35 | $model = Yii::$app->user->identity; |
||
| 36 | /** @var TimestampBehavior|User $model Updates a timestamp attribute to the current timestamp. */ |
||
| 37 | if ($model->profile !== null) { |
||
| 38 | $model->profile->touch('last_visit'); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | return true; |
||
| 42 | } |
||
| 44 |