| Conditions | 4 |
| Paths | 8 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function getContainerExtension() : ExtensionInterface |
||
| 18 | { |
||
| 19 | $extension = new ServicesAndConfigurationAwareExtension(); |
||
| 20 | if ($this->getServicesFile()) { |
||
|
|
|||
| 21 | $extension->setServicesFilePath($this->getServicesFile()); |
||
| 22 | } |
||
| 23 | if ($this->getConfiguration()) { |
||
| 24 | $extension->setConfiguration($this->getConfiguration()); |
||
| 25 | } |
||
| 26 | if ($this->getParametersAliases()) { |
||
| 27 | $extension->setParametersAliases($this->getParametersAliases()); |
||
| 28 | } |
||
| 29 | |||
| 30 | return $extension; |
||
| 31 | } |
||
| 32 | |||
| 54 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: