| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 4 | public function publish($topics, $messages): void |
|
| 25 | { |
||
| 26 | 4 | $topics = implode(', ', $this->formatTopics($this->toArray($topics))); |
|
| 27 | |||
| 28 | /** @var string $message */ |
||
| 29 | 4 | foreach ($this->toArray($messages) as $message) { |
|
| 30 | 4 | assert(\is_string($message), 'Message argument must be a type of string'); |
|
| 31 | 4 | $this->logger->info('Broadcasting on channels [' . $topics . '] with payload: ' . $message); |
|
| 32 | } |
||
| 35 |