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

DataImportMerchantConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSupportedContentTypes() 0 6 1
A getSupportedImporterTypes() 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\DataImportMerchantConfig as SprykerDataImportMerchantConfig;
13
use Spryker\Zed\MerchantProductDataImport\MerchantProductDataImportConfig;
14
15
class DataImportMerchantConfig extends SprykerDataImportMerchantConfig
16
{
17
    /**
18
     * @return list<string>
19
     */
20
    public function getSupportedImporterTypes(): array
21
    {
22
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(Spryker\Zed...CHANT_COMBINED_PRODUCT) returns the type array<integer,string> which is incompatible with the documented return type Pyz\Zed\DataImportMerchant\list.
Loading history...
23
            MerchantProductDataImportConfig::IMPORT_TYPE_MERCHANT_COMBINED_PRODUCT,
24
        ];
25
    }
26
27
    /**
28
     * @return list<string>
29
     */
30
    public function getSupportedContentTypes(): array
31
    {
32
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array('text/csv',...ion/csv', 'text/plain') returns the type array<integer,string> which is incompatible with the documented return type Pyz\Zed\DataImportMerchant\list.
Loading history...
33
            'text/csv',
34
            'application/csv',
35
            'text/plain',
36
        ];
37
    }
38
}
39