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

CheckoutPageConfig::getExcludedPaymentMethodKeys()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
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\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