| Total Complexity | 6 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | /** |
||
| 9 | * Class CwpSolrConfigStore |
||
| 10 | * |
||
| 11 | * Uploads configuration to Solr via the PHP proxy CWP uses to filter requests |
||
| 12 | */ |
||
| 13 | class CwpSolrConfigStore implements SolrConfigStore |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $remote = ''; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $url = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $config |
||
| 27 | */ |
||
| 28 | public function __construct($config) |
||
| 29 | { |
||
| 30 | $options = Solr::solr_options(); |
||
| 31 | |||
| 32 | $this->url = implode('', [ |
||
| 33 | 'http://', |
||
| 34 | isset($config['auth']) ? $config['auth'] . '@' : '', |
||
| 35 | $options['host'] . ':' . $options['port'], |
||
| 36 | $config['path'] |
||
| 37 | ]); |
||
| 80 |
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