Code Duplication    Length = 10-10 lines in 2 locations

src/Repo/Branch/Converter/GithubBranchConvertTrait.php 1 location

@@ 17-26 (lines=10) @@
14
     *
15
     * @return GithubBranchSource
16
     */
17
    protected function convertBranch($data)
18
    {
19
        return new GithubBranchSource(
20
            new GithubBranchId($this->githubRepo->getId(), $data['name']),
21
            $this->githubRepo,
22
            $data['name'],
23
            $this->convertCommit($data['commit'])
24
25
        );
26
    }
27
}
28

src/Repo/Tag/Converter/GithubTagConvertTrait.php 1 location

@@ 17-26 (lines=10) @@
14
     *
15
     * @return GithubTagSource
16
     */
17
    protected function convertTag($data)
18
    {
19
        return new GithubTagSource(
20
            new GithubTagId($this->githubRepo->getId(), $data['name']),
21
            $this->githubRepo,
22
            $data['name'],
23
            $this->convertCommit($data['commit'])
24
25
        );
26
    }
27
}
28