Code Duplication    Length = 11-11 lines in 2 locations

src/Repo/Commit/Converter/GithubCommitConvertTrait.php 2 locations

@@ 44-54 (lines=11) @@
41
     *
42
     * @return GithubUserSource
43
     */
44
    protected function getAuthor($data)
45
    {
46
        return new GithubUserSource(
47
            new GithubUserId($data['author']['id']),
48
            $data['author']['login'],
49
            $data['commit']['author']['email'],
50
            $data['commit']['author']['name'],
51
            $data['author']['avatar_url']
52
53
        );
54
    }
55
56
    /**
57
     * @param $data
@@ 61-71 (lines=11) @@
58
     *
59
     * @return GithubUserSource
60
     */
61
    protected function getCommitter($data)
62
    {
63
        return new GithubUserSource(
64
            new GithubUserId($data['committer']['id']),
65
            $data['committer']['login'],
66
            $data['commit']['committer']['email'],
67
            $data['commit']['committer']['name'],
68
            $data['committer']['avatar_url']
69
70
        );
71
    }
72
}
73