| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function register(Bot $bot) |
||
| 21 | { |
||
| 22 | $manager = $bot->commands(); |
||
| 23 | |||
| 24 | // Add any subclass commands |
||
| 25 | foreach ($this->commands as $command) { |
||
| 26 | $manager->addCommand($command); |
||
| 27 | } |
||
| 28 | |||
| 29 | // Add all the default provided commands |
||
| 30 | foreach ($this->findCommands() as $command) { |
||
| 31 | $manager->addCommand($command); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $manager; |
||
| 35 | } |
||
| 65 | } |