Code Duplication    Length = 10-10 lines in 2 locations

src/EndPoints/Manager.php 2 locations

@@ 40-49 (lines=10) @@
37
     * @return null
38
     * @throws HeadHunterApiException
39
     */
40
    protected function getCurrentEmployerId()
41
    {
42
        $currentUser = $this->getCurrentUser();
43
44
        if(!isset($currentUser['employer']['id'])) {
45
            throw new HeadHunterApiException('Cannot resolve employer id');
46
        }
47
48
        return $currentUser['employer']['id'];
49
    }
50
51
    protected function getCurrentUser()
52
    {
@@ 60-69 (lines=10) @@
57
        return $this->currentUser;
58
    }
59
60
    protected function getCurrentManagerId()
61
    {
62
        $currentUser = $this->getCurrentUser();
63
64
        if(!isset($currentUser['manager']['id'])) {
65
            throw new HeadHunterApiException('Cannot resolve manager id');
66
        }
67
68
        return $currentUser['manager']['id'];
69
    }
70
}