Code Duplication    Length = 8-8 lines in 2 locations

app/Auth/AccountManager/FileBaseAccountManager.php 2 locations

@@ 21-28 (lines=8) @@
18
        return isset($this->accounts[$accountId]);
19
    }
20
21
    public function isEqualPassword($accountId, $password)
22
    {
23
        if ($this->isExistAccountId($accountId) === false) {
24
            return false;
25
        }
26
27
        return $this->accounts[$accountId]['password'] === $password;
28
    }
29
30
    public function getRole($accountId)
31
    {
@@ 30-37 (lines=8) @@
27
        return $this->accounts[$accountId]['password'] === $password;
28
    }
29
30
    public function getRole($accountId)
31
    {
32
        if ($this->isExistAccountId($accountId) === false) {
33
            return null;
34
        }
35
36
        return $this->accounts[$accountId]['role'];
37
    }
38
}
39