Code Duplication    Length = 11-11 lines in 2 locations

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

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