Total Complexity | 7 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | abstract class AbstractRequestBuilder implements CrefoPayApiRequestBuilderInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var \SprykerEco\Zed\CrefoPayApi\Business\Validator\Request\CrefoPayApiRequestValidatorInterface |
||
18 | */ |
||
19 | protected $validator; |
||
20 | |||
21 | /** |
||
22 | * @param \Generated\Shared\Transfer\CrefoPayApiRequestTransfer $requestTransfer |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | abstract protected function convertRequestTransferToArray(CrefoPayApiRequestTransfer $requestTransfer): array; |
||
27 | |||
28 | /** |
||
29 | * @param \SprykerEco\Zed\CrefoPayApi\Business\Validator\Request\CrefoPayApiRequestValidatorInterface $validator |
||
30 | */ |
||
31 | public function __construct(CrefoPayApiRequestValidatorInterface $validator) |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param \Generated\Shared\Transfer\CrefoPayApiRequestTransfer $requestTransfer |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | public function buildRequestPayload(CrefoPayApiRequestTransfer $requestTransfer): array |
||
42 | { |
||
43 | $this->validator->validate($requestTransfer); |
||
44 | $requestPayload = $this->convertRequestTransferToArray($requestTransfer); |
||
45 | |||
46 | return $this->removeRedundantParams($requestPayload); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param array $data |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | protected function removeRedundantParams(array $data): array |
||
70 | } |
||
71 | } |
||
72 |
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