| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 41 | 2 | private function buildMessage(array $event): string |
|
| 42 | { |
||
| 43 | 2 | return \sprintf('%s forked %s', $event['actor']['login'], $event['repo']['name']); |
|
| 44 | } |
||
| 45 | |||
| 46 | 2 | private function buildSound(array $event): BaseSound |
|
| 47 | { |
||
| 48 | 2 | if (\in_array($event['repo']['name'], self::SPECIAL_REPOSITORIES, true)) { |
|
| 49 | 1 | return new SwellEgg(); |
|
| 55 |