| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1.006 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 26 | 1 | public function register(Container $container) |
|
| 27 | { |
||
| 28 | 1 | $container->alias('github', BaseGithub::class) |
|
| 29 | 1 | ->alias(GitHub::class, BaseGithub::class) |
|
| 30 | 1 | ->share( |
|
| 31 | 1 | BaseGithub::class, |
|
| 32 | 1 | function (Container $container) |
|
| 33 | { |
||
| 34 | /** @var \Joomla\Registry\Registry $config */ |
||
| 35 | $config = $container->get('config'); |
||
| 36 | |||
| 37 | return new GitHub($config->extract('github')); |
||
| 38 | 1 | }, |
|
| 39 | true |
||
| 40 | 1 | ); |
|
| 41 | 1 | } |
|
| 42 | } |
||
| 43 |