Completed
Push — master ( 0541e3...1b0cb6 )
by Ilya
55s queued 18s
created

SalesOrderAmendmentDependencyProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 10
dl 0
loc 32
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSalesOrderAmendmentQuoteExpanderPlugins() 0 4 1
A getSalesOrderAmendmentCreateValidationRulePlugins() 0 4 1
A getSalesOrderItemCollectorPlugins() 0 7 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\SalesOrderAmendment;
11
12
use Spryker\Zed\CartNote\Communication\Plugin\SalesOrderAmendment\CartNoteSalesOrderItemCollectorPlugin;
13
use Spryker\Zed\ConfigurableBundleNote\Communication\Plugin\SalesOrderAmendment\ConfigurableBundleNoteSalesOrderItemCollectorPlugin;
14
use Spryker\Zed\SalesOrderAmendment\SalesOrderAmendmentDependencyProvider as SprykerSalesOrderAmendmentDependencyProvider;
15
use Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\SalesOrderAmendment\OrderSalesOrderAmendmentValidatorRulePlugin;
16
use Spryker\Zed\SalesProductConfiguration\Communication\Plugin\SalesOrderAmendment\SalesProductConfigurationSalesOrderItemCollectorPlugin;
17
use Spryker\Zed\Shipment\Communication\Plugin\SalesOrderAmendment\ShipmentGroupsSalesOrderAmendmentQuoteExpanderPlugin;
18
use Spryker\Zed\Shipment\Communication\Plugin\SalesOrderAmendment\ShipmentSalesOrderItemCollectorPlugin;
19
20
class SalesOrderAmendmentDependencyProvider extends SprykerSalesOrderAmendmentDependencyProvider
21
{
22
    /**
23
     * @return list<\Spryker\Zed\SalesOrderAmendmentExtension\Dependency\Plugin\SalesOrderAmendmentValidatorRulePluginInterface>
0 ignored issues
show
Bug introduced by
The type Pyz\Zed\SalesOrderAmendment\list was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
24
     */
25
    protected function getSalesOrderAmendmentCreateValidationRulePlugins(): array
26
    {
27
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...tValidatorRulePlugin()) returns the type array<integer,Spryker\Ze...entValidatorRulePlugin> which is incompatible with the documented return type Pyz\Zed\SalesOrderAmendment\list.
Loading history...
28
            new OrderSalesOrderAmendmentValidatorRulePlugin(),
29
        ];
30
    }
31
32
    /**
33
     * @return list<\Spryker\Zed\SalesOrderAmendmentExtension\Dependency\Plugin\SalesOrderItemCollectorPluginInterface>
34
     */
35
    protected function getSalesOrderItemCollectorPlugins(): array
36
    {
37
        return [
38
            new CartNoteSalesOrderItemCollectorPlugin(),
39
            new ShipmentSalesOrderItemCollectorPlugin(),
40
            new ConfigurableBundleNoteSalesOrderItemCollectorPlugin(),
41
            new SalesProductConfigurationSalesOrderItemCollectorPlugin(),
42
        ];
43
    }
44
45
    /**
46
     * @return list<\Spryker\Zed\SalesOrderAmendmentExtension\Dependency\Plugin\SalesOrderAmendmentQuoteExpanderPluginInterface>
47
     */
48
    protected function getSalesOrderAmendmentQuoteExpanderPlugins(): array
49
    {
50
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...tQuoteExpanderPlugin()) returns the type array<integer,Spryker\Ze...entQuoteExpanderPlugin> which is incompatible with the documented return type Pyz\Zed\SalesOrderAmendment\list.
Loading history...
51
            new ShipmentGroupsSalesOrderAmendmentQuoteExpanderPlugin(),
52
        ];
53
    }
54
}
55