GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 10-10 lines in 4 locations

UserDataBehavior.php 4 locations

@@ 28-37 (lines=10) @@
25
     * @getCreateUser
26
     * @return null|\yii\db\ActiveQuery
27
     */
28
    public function getCreateUser()
29
    {
30
        /* @var $owner BaseActiveRecord */
31
        $owner = $this->owner;
32
33
        if ($owner->hasAttribute($this->createdByAttribute) && $owner->hasAttribute($this->updatedByAttribute))
34
            return $owner->hasOne($this->userClass, ['id' => $this->createdByAttribute]);
35
36
        return null;
37
    }
38
39
    /**
40
     * @getCreateUserName
@@ 43-52 (lines=10) @@
40
     * @getCreateUserName
41
     * @return null|\yii\db\ActiveQuery
42
     */
43
    public function getCreateUserName()
44
    {
45
        /* @var $owner BaseActiveRecord */
46
        $owner = $this->owner;
47
48
        if ($owner->hasAttribute($this->createdByAttribute) && $owner->hasAttribute($this->updatedByAttribute))
49
            return $this->createUser ? $this->createUser->username : '- no user -';
50
51
        return null;
52
    }
53
54
    /**
55
     * @getUpdateUser
@@ 58-67 (lines=10) @@
55
     * @getUpdateUser
56
     * @return null|\yii\db\ActiveQuery
57
     */
58
    public function getUpdateUser()
59
    {
60
        /* @var $owner BaseActiveRecord */
61
        $owner = $this->owner;
62
63
        if ($owner->hasAttribute($this->createdByAttribute) && $owner->hasAttribute($this->updatedByAttribute))
64
            return $this->hasOne($this->userClass, ['id' => $this->updatedByAttribute]);
65
66
        return null;
67
    }
68
69
    /**
70
     * @getUpdateUserName
@@ 73-82 (lines=10) @@
70
     * @getUpdateUserName
71
     * @return null|\yii\db\ActiveQuery
72
     */
73
    public function getUpdateUserName()
74
    {
75
        /* @var $owner BaseActiveRecord */
76
        $owner = $this->owner;
77
78
        if ($owner->hasAttribute($this->createdByAttribute) && $owner->hasAttribute($this->updatedByAttribute))
79
            return $this->createUser ? $this->updateUser->username : '- no user -';
80
81
        return null;
82
    }
83
}