Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
32 | 3 | public function createIndex(IndexDataProvider $indexDataProvider): void |
|
33 | { |
||
34 | 3 | $index = $this->client->getIndex($indexDataProvider->getName()); |
|
35 | |||
36 | 3 | if (!$index->exists() || $indexDataProvider->getDelete()) { |
|
37 | 3 | $index->create( |
|
38 | 3 | $indexDataProvider->getArguments(), |
|
39 | 3 | $indexDataProvider->getDelete() |
|
40 | ); |
||
41 | } |
||
42 | |||
43 | 3 | $this->createTypes($index, $indexDataProvider->getTypes()); |
|
44 | 3 | } |
|
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