CheckoutPageConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
c 0
b 0
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getExcludedPaymentMethodKeys() 0 4 1
A getLocalizedTermsAndConditionsPageLinks() 0 5 1
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
declare(strict_types = 1);
9
10
namespace Pyz\Yves\CheckoutPage;
11
12
use SprykerShop\Yves\CheckoutPage\CheckoutPageConfig as SprykerCheckoutPageConfig;
13
14
class CheckoutPageConfig extends SprykerCheckoutPageConfig
15
{
16
    /**
17
     * @return array<string>
18
     */
19
    public function getLocalizedTermsAndConditionsPageLinks(): array
20
    {
21
        return [
22
            'en_US' => '/en/gtc',
23
            'de_DE' => '/de/agb',
24
        ];
25
    }
26
27
    /**
28
     * @return list<string>
29
     */
30
    public function getExcludedPaymentMethodKeys(): array
31
    {
32
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array('payone-paypal-express') returns the type array<integer,string> which is incompatible with the documented return type Pyz\Yves\CheckoutPage\list.
Loading history...
33
            'payone-paypal-express',
34
        ];
35
    }
36
}
37