| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 2.0054 | 
| Changes | 2 | ||
| Bugs | 0 | Features | 2 | 
| 1 | <?php | ||
| 24 | 5 | public function resolveFromContainerBuilder(ContainerBuilder $containerBuilder) | |
| 25 |     { | ||
| 26 | 5 |         if ($this->resolvedConfiguration) { | |
|  | |||
| 27 | return $this->resolvedConfiguration; | ||
| 28 | } | ||
| 29 | |||
| 30 | 5 | $processor = new Processor(); | |
| 31 | 5 | $configs = $containerBuilder->getExtensionConfig(SymplifyDefaultAutowireBundle::ALIAS); | |
| 32 | 5 | $configs = $processor->processConfiguration(new Configuration(), $configs); | |
| 33 | |||
| 34 | 5 | $this->resolvedConfiguration = $containerBuilder->getParameterBag() | |
| 35 | 5 | ->resolveValue($configs); | |
| 36 | |||
| 37 | 5 | return $this->resolvedConfiguration; | |
| 38 | } | ||
| 39 | } | ||
| 40 | 
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.