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