Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
29 | 2 | public function __invoke( |
|
30 | ContainerInterface $container, |
||
31 | $requestedName, |
||
32 | array $options = null |
||
33 | ): AuthOptions { |
||
34 | 2 | $config = $container->get('Config'); |
|
35 | 2 | $settingsArr = $config[Module::INVOICE_NINJA_CONFIG] ?? []; |
|
36 | 2 | $authArr = $settingsArr[Module::AUTHORIZATION] ?? []; |
|
37 | 2 | return new AuthOptions($authArr); |
|
38 | } |
||
40 |