| Total Complexity | 6 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class EasyCreditDataProvider implements StepEngineFormDataProviderInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var \SprykerEco\Yves\Heidelpay\HeidelpayConfig |
||
| 21 | */ |
||
| 22 | protected $heidelPayConfig; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param \SprykerEco\Yves\Heidelpay\HeidelpayConfig $heidelPayConfig |
||
| 26 | */ |
||
| 27 | public function __construct(HeidelpayConfig $heidelPayConfig) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
|
1 ignored issue
–
show
|
|||
| 34 | * |
||
| 35 | * @return \Generated\Shared\Transfer\QuoteTransfer |
||
| 36 | */ |
||
| 37 | public function getData(AbstractTransfer $quoteTransfer) |
||
| 38 | { |
||
| 39 | if ($quoteTransfer->getPayment() === null) { |
||
| 40 | $quoteTransfer->setPayment(new PaymentTransfer()); |
||
| 41 | } |
||
| 42 | |||
| 43 | if ($quoteTransfer->getPayment()->getHeidelpayEasyCredit() !== null) { |
||
| 44 | return $quoteTransfer; |
||
|
1 ignored issue
–
show
|
|||
| 45 | } |
||
| 46 | |||
| 47 | $quoteTransfer->getPayment()->setHeidelpayEasyCredit(new HeidelpayEasyCreditPaymentTransfer()); |
||
| 48 | |||
| 49 | return $quoteTransfer; |
||
|
1 ignored issue
–
show
|
|||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getOptions(AbstractTransfer $quoteTransfer) |
||
| 67 | ]; |
||
| 68 | } |
||
| 70 |
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