Completed
Push — master ( f465c8...ce649b )
by Ilya
52s queued 19s
created

CartReorderPageDependencyProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCartReorderRequestExpanderPlugins() 0 4 1
A getCartReorderItemCheckboxAttributeExpanderPlugins() 0 5 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\Yves\CartReorderPage;
11
12
use SprykerShop\Yves\AvailabilityWidget\Plugin\CartReorderPage\ProductAvailabilityCartReorderItemCheckboxAttributeExpanderPlugin;
13
use SprykerShop\Yves\CartReorderPage\CartReorderPageDependencyProvider as SprykerCartReorderPageDependencyProvider;
14
use SprykerShop\Yves\ProductBundleWidget\Plugin\CartReorderPage\ProductBundleCartReorderItemCheckboxAttributeExpanderPlugin;
15
use SprykerShop\Yves\ProductBundleWidget\Plugin\CartReorderPage\ProductBundleCartReorderRequestExpanderPlugin;
16
17
class CartReorderPageDependencyProvider extends SprykerCartReorderPageDependencyProvider
18
{
19
    /**
20
     * @return list<\SprykerShop\Yves\CartReorderPageExtension\Dependency\Plugin\CartReorderItemCheckboxAttributeExpanderPluginInterface>
0 ignored issues
show
Bug introduced by
The type Pyz\Yves\CartReorderPage\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...
21
     */
22
    protected function getCartReorderItemCheckboxAttributeExpanderPlugins(): array
23
    {
24
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...ributeExpanderPlugin()) returns the type array<integer,SprykerSho...ttributeExpanderPlugin> which is incompatible with the documented return type Pyz\Yves\CartReorderPage\list.
Loading history...
25
            new ProductAvailabilityCartReorderItemCheckboxAttributeExpanderPlugin(),
26
            new ProductBundleCartReorderItemCheckboxAttributeExpanderPlugin(),
27
        ];
28
    }
29
30
    /**
31
     * @return list<\SprykerShop\Yves\CartReorderPageExtension\Dependency\Plugin\CartReorderRequestExpanderPluginInterface>
32
     */
33
    protected function getCartReorderRequestExpanderPlugins(): array
34
    {
35
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...equestExpanderPlugin()) returns the type array<integer,SprykerSho...rRequestExpanderPlugin> which is incompatible with the documented return type Pyz\Yves\CartReorderPage\list.
Loading history...
36
            new ProductBundleCartReorderRequestExpanderPlugin(),
37
        ];
38
    }
39
}
40