Code Duplication    Length = 8-8 lines in 2 locations

src/Event/GitHub/IssueCommentEvent.php 1 location

@@ 44-51 (lines=8) @@
41
        return \sprintf('%s commented in %s', $event['actor']['login'], $event['repo']['name']);
42
    }
43
44
    private function buildSound(array $event): BaseSound
45
    {
46
        if ($event['repo']['name'] === 'ekinhbayar/gitamp') {
47
            return new ClavEgg();
48
        }
49
50
        return new Clav(\strlen($this->buildPayload($event)) * 1.1);
51
    }
52
}
53

src/Event/GitHub/PushEvent.php 1 location

@@ 45-52 (lines=8) @@
42
        return \sprintf('%s pushed to %s', $event['actor']['login'], $event['repo']['name']);
43
    }
44
45
    private function buildSound(array $event): BaseSound
46
    {
47
        if ($event['repo']['name'] === 'ekinhbayar/gitamp') {
48
            return new CelestaEgg();
49
        }
50
51
        return new Celesta(\strlen($this->buildPayload($event)) * 1.1);
52
    }
53
}
54