| Total Complexity | 6 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Locator |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var \Xervice\Core\Locator\Locator |
||
| 16 | */ |
||
| 17 | private static $instance; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $proxies = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $projectNamespace; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | private $additionalNamespaces; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Locator constructor. |
||
| 36 | */ |
||
| 37 | 1 | public function __construct() |
|
| 38 | { |
||
| 39 | 1 | $this->projectNamespace = $this->getConfig()->get(CoreConfig::PROJECT_LAYER_NAMESPACE, 'App'); |
|
| 40 | 1 | $this->additionalNamespaces = $this->getConfig()->get(CoreConfig::ADDITIONAL_LAYER_NAMESPACES, []); |
|
| 41 | 1 | } |
|
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * @return \Generated\Ide\LocatorAutoComplete|\Xervice\Core\Locator\Locator |
||
|
|
|||
| 46 | */ |
||
| 47 | 8 | public static function getInstance() |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param $name |
||
| 57 | * @param $arguments |
||
| 58 | * |
||
| 59 | * @return \Xervice\Core\Locator\Proxy\XerviceLocatorProxy |
||
| 60 | */ |
||
| 61 | 8 | public function __call($name, $arguments) |
|
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return \Xervice\Config\Container\ConfigContainer |
||
| 76 | */ |
||
| 77 | 1 | private function getConfig(): \Xervice\Config\Container\ConfigContainer |
|
| 82 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths