Code Duplication    Length = 9-9 lines in 2 locations

src/Event/GitHub/IssuesEvent.php 1 location

@@ 30-38 (lines=9) @@
27
        );
28
    }
29
30
    private function buildMessage(array $event): string
31
    {
32
        return \sprintf(
33
            '%s %s an issue in %s',
34
            $event['actor']['login'],
35
            $event['payload']['action'],
36
            $event['repo']['name']
37
        );
38
    }
39
40
    private function buildSound(array $event): BaseSound
41
    {

src/Event/GitHub/PullRequestEvent.php 1 location

@@ 30-38 (lines=9) @@
27
        );
28
    }
29
30
    private function buildMessage(array $event): string
31
    {
32
        return \sprintf(
33
            '%s %s a PR for %s',
34
            $event['actor']['login'],
35
            $event['payload']['action'],
36
            $event['repo']['name']
37
        );
38
    }
39
40
    private function buildSound(array $event): BaseSound
41
    {