Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
53 | { |
||
54 | 4 | if ($this->container instanceof ContainerInterface && isset($this->command_handler_ids[$command_name])) { |
|
55 | 3 | $handler = $this->container->get($this->command_handler_ids[$command_name]); |
|
56 | |||
57 | 3 | if ($handler instanceof CommandHandler) { |
|
58 | 1 | return $handler; |
|
59 | } |
||
60 | 2 | } |
|
61 | |||
62 | 3 | return null; |
|
63 | } |
||
64 | } |
||
65 |