| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class FactFinderNgTrackCartAdapter extends FactFinderAbstractAdapter |
||
| 14 | { |
||
| 15 | protected const FACT_FINDER_URL_CART = 'cart'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param \Generated\Shared\Transfer\FactFinderNgRequestTransfer $factFinderNgRequestTransfer |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | protected function getUrl(FactFinderNgRequestTransfer $factFinderNgRequestTransfer): string |
||
| 23 | { |
||
| 24 | return sprintf( |
||
| 25 | '%s/%s/%s/%s/%s/%s', |
||
| 26 | $this->config->getFactFinderUrl(), |
||
| 27 | static::FACT_FINDER_URL_TYPE_URL, |
||
| 28 | static::FACT_FINDER_URL_VERSION, |
||
| 29 | static::FACT_FINDER_URL_TRACK, |
||
| 30 | $this->getChannel(), |
||
| 31 | static::FACT_FINDER_URL_CART |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | protected function getMethod(): string |
||
| 39 | { |
||
| 40 | return Request::METHOD_POST; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | protected function getChannel(): string |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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