| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class CancelRequest implements CrefoPayApiRequestInterface |
||
| 15 | { |
||
| 16 | protected const REQUEST_TYPE = 'cancel'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var \SprykerEco\Zed\CrefoPayApi\Business\Builder\Request\CrefoPayApiRequestBuilderInterface |
||
| 20 | */ |
||
| 21 | protected $requestBuilder; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var \SprykerEco\Zed\CrefoPayApi\CrefoPayApiConfig |
||
| 25 | */ |
||
| 26 | protected $config; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param \SprykerEco\Zed\CrefoPayApi\Business\Builder\Request\CrefoPayApiRequestBuilderInterface $requestBuilder |
||
| 30 | * @param \SprykerEco\Zed\CrefoPayApi\CrefoPayApiConfig $config |
||
| 31 | */ |
||
| 32 | public function __construct( |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param \Generated\Shared\Transfer\CrefoPayApiRequestTransfer $requestTransfer |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function getFormParams(CrefoPayApiRequestTransfer $requestTransfer): array |
||
| 46 | { |
||
| 47 | return $this->requestBuilder->buildRequestPayload($requestTransfer); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getUrl(): string |
||
| 54 | { |
||
| 55 | return $this->config->getCancelActionUrl(); |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getRequestType(): string |
||
| 64 | } |
||
| 65 | } |
||
| 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