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

getQuoteDeleteAfterPlugins()   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
rs 10
c 0
b 0
f 0
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\Zed\Quote;
11
12
use Spryker\Zed\Currency\Communication\Plugin\Quote\DefaultCurrencyQuoteExpandBeforeCreatePlugin;
13
use Spryker\Zed\Currency\Communication\Plugin\Quote\QuoteCurrencyValidatorPlugin;
14
use Spryker\Zed\OrderCustomReference\Communication\Plugin\Quote\OrderCustomReferenceQuoteFieldsAllowedForSavingProviderPlugin;
15
use Spryker\Zed\Price\Communication\Plugin\Quote\QuotePriceModeValidatorPlugin;
16
use Spryker\Zed\Quote\QuoteDependencyProvider as SprykerQuoteDependencyProvider;
17
use Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Quote\CancelOrderAmendmentQuoteDeleteAfterPlugin;
18
use Spryker\Zed\Store\Communication\Plugin\Quote\QuoteStoreValidatorPlugin;
19
20
class QuoteDependencyProvider extends SprykerQuoteDependencyProvider
21
{
22
    /**
23
     * @return list<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteDeleteAfterPluginInterface>
0 ignored issues
show
Bug introduced by
The type Pyz\Zed\Quote\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 getQuoteDeleteAfterPlugins(): array
26
    {
27
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...oteDeleteAfterPlugin()) returns the type array<integer,Spryker\Ze...QuoteDeleteAfterPlugin> which is incompatible with the documented return type Pyz\Zed\Quote\list.
Loading history...
28
            new CancelOrderAmendmentQuoteDeleteAfterPlugin(),
29
        ];
30
    }
31
32
    /**
33
     * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteValidatorPluginInterface>
34
     */
35
    protected function getQuoteValidatorPlugins(): array
36
    {
37
        return [
38
            new QuoteCurrencyValidatorPlugin(),
39
            new QuotePriceModeValidatorPlugin(),
40
            new QuoteStoreValidatorPlugin(),
41
        ];
42
    }
43
44
    /**
45
     * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteExpandBeforeCreatePluginInterface>
46
     */
47
    protected function getQuoteExpandBeforeCreatePlugins(): array
48
    {
49
        return [
50
            new DefaultCurrencyQuoteExpandBeforeCreatePlugin(),
51
        ];
52
    }
53
54
    /**
55
     * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteFieldsAllowedForSavingProviderPluginInterface>
56
     */
57
    protected function getQuoteFieldsAllowedForSavingProviderPlugins(): array
58
    {
59
        return [
60
            new OrderCustomReferenceQuoteFieldsAllowedForSavingProviderPlugin(),
61
        ];
62
    }
63
}
64