| 1 | <?php |
||
| 15 | final class MultiCodingStandardExtension extends CompilerExtension |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string[] |
||
| 19 | */ |
||
| 20 | private $defaults = [ |
||
| 21 | 'configPathsToCheck' => [ |
||
| 22 | '%appDir%/../../../../multi-cs.json', // installed as dependency |
||
| 23 | '%appDir%/../../multi-cs.json', // cloned package |
||
| 24 | ], |
||
| 25 | ]; |
||
| 26 | |||
| 27 | public function loadConfiguration() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string[] $defaults |
||
| 35 | */ |
||
| 36 | private function setConfigToContainerBuilder(array $defaults) |
||
| 42 | |||
| 43 | private function loadServicesFromConfigPath(string $configPath) |
||
| 49 | |||
| 50 | private function detectConfigPath(array $configPathsToCheck) : string |
||
| 61 | } |
||
| 62 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.