| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 1 | public function registerSubscriber(CommandSubscriber $subscriber): void |
|
| 39 | { |
||
| 40 | 1 | foreach ($subscriber::getSubscribedCommands() as $command_name => $method) { |
|
| 41 | 1 | $handler = [$subscriber, $method]; |
|
| 42 | 1 | if (is_callable($handler)) { |
|
| 43 | 1 | $this->registerHandler($command_name, $handler); |
|
| 44 | } |
||
| 45 | } |
||
| 46 | 1 | } |
|
| 47 | |||
| 58 |