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