Passed
Push — master ( f0d78a...818802 )
by Alexandr
12:50 queued 15s
created

CheckoutPageConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLocalizedTermsAndConditionsPageLinks() 0 5 1
A getExcludedPaymentMethodKeys() 0 4 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
namespace Pyz\Yves\CheckoutPage;
9
10
use SprykerShop\Yves\CheckoutPage\CheckoutPageConfig as SprykerCheckoutPageConfig;
11
12
class CheckoutPageConfig extends SprykerCheckoutPageConfig
13
{
14
    /**
15
     * @return array<string>
16
     */
17
    public function getLocalizedTermsAndConditionsPageLinks(): array
18
    {
19
        return [
20
            'en_US' => '/en/gtc',
21
            'de_DE' => '/de/agb',
22
        ];
23
    }
24
25
    /**
26
     * @return list<string>
27
     */
28
    public function getExcludedPaymentMethodKeys(): array
29
    {
30
        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...
31
            'payone-paypal-express',
32
        ];
33
    }
34
}
35