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