Passed
Pull Request — master (#743)
by Anton
36:31
created

DataImportMerchantDependencyProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 9
c 1
b 0
f 0
dl 0
loc 39
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDataImportMerchantFileExpanderPlugins() 0 4 1
A getDataImportMerchantFileRequestExpanderPlugins() 0 4 1
A getDataImportMerchantFileValidatorPlugins() 0 4 1
A getPossibleCsvHeaderExpanderPlugins() 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
declare(strict_types = 1);
9
10
namespace Pyz\Zed\DataImportMerchant;
11
12
use Spryker\Zed\DataImportMerchant\DataImportMerchantDependencyProvider as SprykerDataImportMerchantDependencyProvider;
13
use Spryker\Zed\MerchantProductDataImport\Communication\Plugin\DataImportMerchant\MerchantCombinedProductMerchantFileRequestExpanderPlugin;
14
use Spryker\Zed\MerchantProductDataImport\Communication\Plugin\DataImportMerchant\MerchantCombinedProductMerchantFileValidationPlugin;
15
use Spryker\Zed\MerchantProductDataImport\Communication\Plugin\DataImportMerchant\MerchantCombinedProductPossibleCsvHeaderExpanderPlugin;
16
use Spryker\Zed\User\Communication\Plugin\DataImportMerchant\UserDataImportMerchantFileExpanderPlugin;
17
18
class DataImportMerchantDependencyProvider extends SprykerDataImportMerchantDependencyProvider
19
{
20
    /**
21
     * @return list<\Spryker\Zed\DataImportMerchantExtension\Dependency\Plugin\DataImportMerchantFileValidatorPluginInterface>
22
     */
23
    protected function getDataImportMerchantFileValidatorPlugins(): array
24
    {
25
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...FileValidationPlugin()) returns the type array<integer,Spryker\Ze...ntFileValidationPlugin> which is incompatible with the documented return type Pyz\Zed\DataImportMerchant\list.
Loading history...
26
            new MerchantCombinedProductMerchantFileValidationPlugin(),
27
        ];
28
    }
29
30
    /**
31
     * @return list<\Spryker\Zed\DataImportMerchantExtension\Dependency\Plugin\DataImportMerchantFileExpanderPluginInterface>
32
     */
33
    protected function getDataImportMerchantFileExpanderPlugins(): array
34
    {
35
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...ntFileExpanderPlugin()) returns the type array<integer,Spryker\Ze...hantFileExpanderPlugin> which is incompatible with the documented return type Pyz\Zed\DataImportMerchant\list.
Loading history...
36
            new UserDataImportMerchantFileExpanderPlugin(),
37
        ];
38
    }
39
40
    /**
41
     * @return list<\Spryker\Zed\DataImportMerchantExtension\Dependency\Plugin\DataImportMerchantFileRequestExpanderPluginInterface>
42
     */
43
    protected function getDataImportMerchantFileRequestExpanderPlugins(): array
44
    {
45
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...equestExpanderPlugin()) returns the type array<integer,Spryker\Ze...eRequestExpanderPlugin> which is incompatible with the documented return type Pyz\Zed\DataImportMerchant\list.
Loading history...
46
            new MerchantCombinedProductMerchantFileRequestExpanderPlugin(),
47
        ];
48
    }
49
50
    /**
51
     * @return list<\Spryker\Zed\DataImportMerchantExtension\Dependency\Plugin\PossibleCsvHeaderExpanderPluginInterface>
52
     */
53
    protected function getPossibleCsvHeaderExpanderPlugins(): array
54
    {
55
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...HeaderExpanderPlugin()) returns the type array<integer,Spryker\Ze...svHeaderExpanderPlugin> which is incompatible with the documented return type Pyz\Zed\DataImportMerchant\list.
Loading history...
56
            new MerchantCombinedProductPossibleCsvHeaderExpanderPlugin(),
57
        ];
58
    }
59
}
60