Firesphere /
silverstripe-search
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Trait GetSetSearchResolverTrait|Firesphere\SearchBackend\Traits\GetSetSearchResolverTrait Used to extract methods from |
||
| 4 | * the {@link \Firesphere\SearchBackend\Helpers\FieldResolver} to make the code more readable |
||
| 5 | * |
||
| 6 | * @package Firesphere\Search\Backend |
||
| 7 | * @author Simon `Firesphere` Erkelens; Marco `Sheepy` Hermo |
||
| 8 | * @copyright Copyright (c) 2018 - now() Firesphere & Sheepy |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace Firesphere\SearchBackend\Traits\IntrospectionTraits; |
||
| 12 | |||
| 13 | use Firesphere\SolrSearch\Indexes\BaseIndex as SolrIndex; |
||
|
0 ignored issues
–
show
|
|||
| 14 | |||
| 15 | /** |
||
| 16 | * Setters and getters for the introspection. |
||
| 17 | * |
||
| 18 | * Setters and getters to help with introspection/resolving, it's fairly simple, but extracted |
||
| 19 | * so it's cleaner to read the code |
||
| 20 | * |
||
| 21 | * @package Firesphere\Search\Backend |
||
| 22 | */ |
||
| 23 | trait GetSetSearchResolverTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var SolrIndex Index to use |
||
| 27 | */ |
||
| 28 | protected $index; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the current index |
||
| 32 | * |
||
| 33 | * @return SolrIndex |
||
| 34 | */ |
||
| 35 | public function getIndex(): SolrIndex |
||
| 36 | { |
||
| 37 | return $this->index; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the current index |
||
| 42 | * |
||
| 43 | * @param SolrIndex $index |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setIndex($index) |
||
| 47 | { |
||
| 48 | $this->index = $index; |
||
| 49 | |||
| 50 | return $this; |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
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