Code Duplication    Length = 9-9 lines in 2 locations

lib/GitHub/Receiver/Users/Followers.php 2 locations

@@ 25-33 (lines=9) @@
22
     * @return array
23
     * @throws \Exception
24
     */
25
    public function listFollowers(string $username = null): array
26
    {
27
        $url = '/user/followers';
28
        if (null !== $username) {
29
            $url = $this->getApi()->sprintf('/users/:username/followers', $username);
30
        }
31
32
        return $this->getApi()->request($url);
33
    }
34
35
    /**
36
     * List users followed by another user
@@ 45-53 (lines=9) @@
42
     * @return array
43
     * @throws \Exception
44
     */
45
    public function listUsersFollowedBy(string $username = null): array
46
    {
47
        $url = '/user/following';
48
        if (null !== $username) {
49
            $url = $this->getApi()->sprintf('/users/:username/following', $username);
50
        }
51
52
        return $this->getApi()->request($url);
53
    }
54
55
    /**
56
     * Check if you are following a user