Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function setPlatFormForEvent(?string $platform = EventConstant::DEFAULT_PLATFORM, ?string $platformFile = null): void |
||
14 | { |
||
15 | /** @var array $platformFileDefaults<platform, platformFile> */ |
||
16 | $platformFileDefaults = config('telegram-git-notifier.data_file.platform'); |
||
17 | $this->event->setPlatformFile($platformFile ?? $platformFileDefaults[$platform]); |
||
18 | $this->event->setEventConfig($platform); |
||
19 | } |
||
46 |