Completed
Push — master ( 6db6da...5370d9 )
by Angel
03:42
created

ProfileView::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace roaresearch\yii2\roa\actions;
4
5
use Yii;
6
7
class ProfileView extends \yii\rest\Action
8
{
9
    /**
10
     * @inheritdoc
11
     */
12
    public function init()
13
    {
14
    }
15
16
    /**
17
     * Shows the information of the logged user.
18
     *
19
     * @return yii\web\IdentityInterface
20
     */
21
    public function run()
22
    {
23
        return Yii::$app->user->identity;
24
    }
25
}
26