| Total Complexity | 6 |
| Total Lines | 78 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | abstract class Context |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The context options |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $options; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The normalizer |
||
| 21 | * |
||
| 22 | * @var NormalizerInterface |
||
| 23 | */ |
||
| 24 | protected $normalizer; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Context constructor. |
||
| 28 | * |
||
| 29 | * @param NormalizerInterface $normalizer |
||
| 30 | * @param array $options |
||
| 31 | */ |
||
| 32 | 256 | public function __construct(NormalizerInterface $normalizer, array $options = []) |
|
| 33 | { |
||
| 34 | 256 | $this->normalizer = $normalizer; |
|
| 35 | 256 | $this->options = $options; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the root normalizer |
||
| 40 | * |
||
| 41 | * @return NormalizerInterface |
||
| 42 | */ |
||
| 43 | 166 | public function root(): NormalizerInterface |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get an option |
||
| 50 | * |
||
| 51 | * @param string $key |
||
| 52 | * @param T $default |
||
|
|
|||
| 53 | * |
||
| 54 | * @return (T is null ? mixed|null : T) |
||
| 55 | * |
||
| 56 | * @template T |
||
| 57 | */ |
||
| 58 | 86 | public function option(string $key, $default = null) |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Create new context from this one |
||
| 65 | * |
||
| 66 | * @param array $newOptions |
||
| 67 | * |
||
| 68 | * @return static |
||
| 69 | */ |
||
| 70 | 158 | public function duplicate(array $newOptions = null): self |
|
| 80 | } |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Prepare the known options |
||
| 84 | * |
||
| 85 | * @param array $options |
||
| 86 | */ |
||
| 87 | abstract protected function prepareOptions(array $options): void; |
||
| 88 | } |
||
| 89 |
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