Total Complexity | 7 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class ContextRepository implements ContextRepositoryInterface { |
||
15 | |||
16 | /** |
||
17 | * The list of content providers. |
||
18 | * |
||
19 | * @var \Drupal\Core\Plugin\Context\ContextProviderInterface[] |
||
20 | */ |
||
21 | protected $contextProviders = []; |
||
22 | |||
23 | /** |
||
24 | * Add a context provider. |
||
25 | * |
||
26 | * @param \Drupal\Core\Plugin\Context\ContextProviderInterface $contextProvider |
||
27 | * The context provider to add. |
||
28 | */ |
||
29 | public function addContextProvider(ContextProviderInterface $contextProvider) { |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function getRuntimeContexts(array $contextIds) { |
||
37 | $contexts = []; |
||
38 | foreach ($this->contextProviders as $contextProvider) { |
||
39 | foreach ($contextProvider->getRuntimeContexts($contextIds) as $id => $context) { |
||
40 | $contexts[$id] = $context; |
||
41 | } |
||
42 | } |
||
43 | return $contexts; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getAvailableContexts() { |
||
57 | } |
||
58 | |||
60 |
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