| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class CrefoPayUniqueIdGenerator implements CrefoPayUniqueIdGeneratorInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var SprykerEco\Service\CrefoPay\Dependency\Service\CrefoPayToUtilTextServiceInterface $crefoPayUniqueIdGeneratorBridge |
||
| 17 | */ |
||
| 18 | protected $crefoPayToUtilTextServiceBridge; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * CrefoPayUniqueIdGenerator constructor. |
||
| 22 | * |
||
| 23 | * @param SprykerEco\Service\CrefoPay\Dependency\Service\CrefoPayToUtilTextServiceInterface $crefoPayUniqueIdGeneratorBridge |
||
| 24 | */ |
||
| 25 | public function __construct(CrefoPayToUtilTextServiceInterface $crefoPayToUtilTextServiceBridge) |
||
| 26 | { |
||
| 27 | $this->crefoPayToUtilTextServiceBridge = $crefoPayToUtilTextServiceBridge; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @deprecated Use {@link generateCrefoPayOrderIdIndependent()} instead. |
||
| 32 | * |
||
| 33 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function generateCrefoPayOrderId(QuoteTransfer $quoteTransfer): string |
||
| 38 | { |
||
| 39 | return uniqid($quoteTransfer->getCustomerReference() . '-', true); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function generateCrefoPayOrderIdIndependent(): string |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
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