| Total Complexity | 8 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class HeyMan |
||
| 13 | { |
||
| 14 | use EloquentHooks, EventHooks, InputNormalizer; |
||
| 15 | |||
| 16 | private $chain; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * HeyMan constructor. |
||
| 20 | * |
||
| 21 | * @param Chain $chain |
||
| 22 | */ |
||
| 23 | 102 | public function __construct(Chain $chain) |
|
| 26 | 102 | } |
|
| 27 | |||
| 28 | 15 | public function turnOff(): Consider |
|
| 29 | { |
||
| 30 | 15 | return new Consider('turnOff'); |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function turnOn(): Consider |
|
| 36 | } |
||
| 37 | |||
| 38 | 13 | public function forget(): Forget |
|
| 41 | } |
||
| 42 | |||
| 43 | 58 | public function __call($method, $args) |
|
| 44 | { |
||
| 45 | 58 | foreach ($this->mapping() as $className => $methods) { |
|
| 46 | 58 | if (str_contains($method, $methods)) { |
|
| 47 | return app($className)->$method(...$args); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | private function mapping(): array |
||
| 60 | ]; |
||
| 61 | } |
||
| 63 |
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