Code Duplication    Length = 8-8 lines in 2 locations

app/Account.php 1 location

@@ 47-54 (lines=8) @@
44
        return $this->hasOne('App\Group', 'id', 'group_id');
45
    }
46
47
    public function getStatus()
48
    {
49
        if (array_key_exists((int)$this->status, self::ACCOUNT_STATUS)) {
50
            return self::ACCOUNT_STATUS[(int)$this->status];
51
        } else {
52
            return null;
53
        }
54
    }
55
56
    public function category()
57
    {

app/User.php 1 location

@@ 65-72 (lines=8) @@
62
        'password', 'remember_token',
63
    ];
64
65
    public function getStatus()
66
    {
67
        if (array_key_exists((int)$this->status, self::USER_STATUS)) {
68
            return self::USER_STATUS[(int)$this->status];
69
        } else {
70
            return null;
71
        }
72
    }
73
74
    public function getLevel()
75
    {