Completed
Push — master ( d90449...5bd118 )
by Denys
01:58 queued 16s
created

getExpressCheckoutStartPageRouteName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace Pyz\Yves\PaymentAppWidget;
9
10
use Generated\Shared\Transfer\QuoteTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\QuoteTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use SprykerShop\Yves\CheckoutPage\Plugin\Router\CheckoutPageRouteProviderPlugin;
12
use SprykerShop\Yves\PaymentAppWidget\PaymentAppWidgetConfig as SprykerPaymentAppWidgetConfig;
13
14
class PaymentAppWidgetConfig extends SprykerPaymentAppWidgetConfig
15
{
16
    /**
17
     * @var list<string>
18
     */
19
    protected const CHECKOUT_STEPS_TO_SKIP_IN_EXPRESS_CHECKOUT_WORKFLOW = [
20
        'address',
21
        'shipment',
22
        'payment',
23
    ];
24
25
    /**
26
     * @var list<string>
27
     */
28
    protected const QUOTE_FIELDS_TO_CLEAN_IN_EXPRESS_CHECKOUT_WORKFLOW = [
29
        QuoteTransfer::PAYMENT,
30
        QuoteTransfer::PAYMENTS,
31
        QuoteTransfer::SHIPMENT,
32
        QuoteTransfer::BILLING_ADDRESS,
33
        QuoteTransfer::SHIPPING_ADDRESS,
34
        QuoteTransfer::PRE_ORDER_PAYMENT_DATA,
35
    ];
36
37
    /**
38
     * @return string
39
     */
40
    public function getExpressCheckoutStartPageRouteName(): string
41
    {
42
        return CheckoutPageRouteProviderPlugin::ROUTE_NAME_CHECKOUT_INDEX;
43
    }
44
}
45