Passed
Push — master ( 813c2b...31a484 )
by Ilya
05:35 queued 14s
created

  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
dl 0
loc 4
c 0
b 0
f 0
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
declare(strict_types = 1);
9
10
namespace Pyz\Yves\CustomerPage;
11
12
use Spryker\Yves\MerchantShipment\Plugin\CustomerPage\MerchantShipmentCheckoutAddressStepPreGroupItemsByShipmentPlugin;
13
use Spryker\Yves\MultiFactorAuth\Plugin\AuthenticationHandler\Customer\CustomerMultiFactorAuthenticationHandlerPlugin;
14
use SprykerShop\Yves\AgentPage\Plugin\Security\UpdateAgentTokenAfterCustomerAuthenticationSuccessPlugin;
15
use SprykerShop\Yves\ClickAndCollectPageExample\Plugin\CustomerPage\ClickAndCollectServiceTypeCheckoutAddressCollectionFormExpanderPlugin;
16
use SprykerShop\Yves\ClickAndCollectPageExample\Plugin\CustomerPage\ClickAndCollectServiceTypeCheckoutMultiShippingAddressesFormExpanderPlugin;
17
use SprykerShop\Yves\CustomerPage\CustomerPageDependencyProvider as SprykerShopCustomerPageDependencyProvider;
18
use SprykerShop\Yves\ServicePointWidget\Plugin\CustomerPage\ServicePointAddressCheckoutAddressCollectionFormExpanderPlugin;
19
use SprykerShop\Yves\ServicePointWidget\Plugin\CustomerPage\ServicePointCheckoutAddressCollectionFormExpanderPlugin;
20
use SprykerShop\Yves\ServicePointWidget\Plugin\CustomerPage\ServicePointCheckoutMultiShippingAddressesFormExpanderPlugin;
21
use SprykerShop\Yves\SessionAgentValidation\Plugin\CustomerPage\UpdateAgentSessionAfterCustomerAuthenticationSuccessPlugin;
22
use SprykerShop\Yves\ShipmentTypeWidget\Plugin\CustomerPage\ShipmentTypeCheckoutAddressCollectionFormExpanderPlugin;
23
use SprykerShop\Yves\ShipmentTypeWidget\Plugin\CustomerPage\ShipmentTypeCheckoutAddressStepPreGroupItemsByShipmentPlugin;
24
use SprykerShop\Yves\ShipmentTypeWidget\Plugin\CustomerPage\ShipmentTypeCheckoutMultiShippingAddressesFormExpanderPlugin;
25
26
class CustomerPageDependencyProvider extends SprykerShopCustomerPageDependencyProvider
27
{
28
    /**
29
     * @return list<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\AfterCustomerAuthenticationSuccessPluginInterface>
30
     */
31
    protected function getAfterCustomerAuthenticationSuccessPlugins(): array
32
    {
33
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...icationSuccessPlugin()) returns the type array<integer,SprykerSho...nticationSuccessPlugin> which is incompatible with the documented return type Pyz\Yves\CustomerPage\list.
Loading history...
34
            new UpdateAgentTokenAfterCustomerAuthenticationSuccessPlugin(),
35
            new UpdateAgentSessionAfterCustomerAuthenticationSuccessPlugin(),
36
        ];
37
    }
38
39
    /**
40
     * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutAddressStepPreGroupItemsByShipmentPluginInterface>
41
     */
42
    protected function getCheckoutAddressStepPreGroupItemsByShipmentPlugins(): array
43
    {
44
        return [
45
            new MerchantShipmentCheckoutAddressStepPreGroupItemsByShipmentPlugin(),
46
            new ShipmentTypeCheckoutAddressStepPreGroupItemsByShipmentPlugin(),
47
        ];
48
    }
49
50
    /**
51
     * @return list<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutAddressCollectionFormExpanderPluginInterface>
52
     */
53
    protected function getCheckoutAddressCollectionFormExpanderPlugins(): array
54
    {
55
        return [
56
            new ShipmentTypeCheckoutAddressCollectionFormExpanderPlugin(),
57
            new ServicePointCheckoutAddressCollectionFormExpanderPlugin(),
58
            new ServicePointAddressCheckoutAddressCollectionFormExpanderPlugin(),
59
            new ClickAndCollectServiceTypeCheckoutAddressCollectionFormExpanderPlugin(),
60
        ];
61
    }
62
63
    /**
64
     * @return list<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutMultiShippingAddressesFormExpanderPluginInterface>
65
     */
66
    protected function getCheckoutMultiShippingAddressesFormExpanderPlugins(): array
67
    {
68
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...esFormExpanderPlugin()) returns the type array<integer,SprykerSho...ssesFormExpanderPlugin> which is incompatible with the documented return type Pyz\Yves\CustomerPage\list.
Loading history...
69
            new ShipmentTypeCheckoutMultiShippingAddressesFormExpanderPlugin(),
70
            new ServicePointCheckoutMultiShippingAddressesFormExpanderPlugin(),
71
            new ClickAndCollectServiceTypeCheckoutMultiShippingAddressesFormExpanderPlugin(),
72
        ];
73
    }
74
75
    /**
76
     * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\AuthenticationHandlerPluginInterface>
77
     */
78
    protected function getCustomerAuthenticationHandlerPlugins(): array
79
    {
80
        return [
81
            new CustomerMultiFactorAuthenticationHandlerPlugin(),
82
        ];
83
    }
84
}
85