Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
47 | public function handle(ClientInterface $client): void |
||
48 | { |
||
49 | if ($this->searchables->isEmpty()) { |
||
50 | return; |
||
51 | } |
||
52 | |||
53 | $index = $client->initIndex($this->searchables->first()->searchableAs()); |
||
54 | |||
55 | $result = $index->deleteBy([ |
||
56 | 'tagFilters' => $this->searchables->map(function ($searchable) { |
||
57 | return ObjectIdEncrypter::encrypt($searchable); |
||
58 | })->toArray(), |
||
59 | ]); |
||
60 | |||
61 | if (config('scout.synchronous', false)) { |
||
62 | $result->wait(); |
||
63 | } |
||
66 |
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