Conditions | 3 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __invoke( |
||
20 | ContainerInterface $container, |
||
21 | string $requestedName, |
||
22 | array $options = null |
||
23 | ): MemoryUsageProcessor { |
||
24 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
||
25 | |||
26 | return new MemoryUsageProcessor( |
||
27 | !isset($options['real_usage']) || $options['real_usage'], |
||
28 | !isset($options['use_formatting']) || $options['use_formatting'] |
||
29 | ); |
||
32 |