| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 11 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
| 25 | { |
||
| 26 | 11 | $config = $serviceLocator->get('config'); |
|
| 27 | |||
| 28 | 11 | if (isset($config['mpafirephpwrapper'])) { |
|
| 29 | 10 | return new FirephpWrapperOptions($config['mpafirephpwrapper']); |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | return new FirephpWrapperOptions([ |
|
| 33 | 1 | 'maxObjectDepth' => 3, |
|
| 34 | 'maxArrayDepth' => 3, |
||
| 35 | 'maxDepth' => 3, |
||
| 36 | 'useNativeJsonEncode' => true, |
||
| 37 | 'includeLineNumbers' => true |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |