ProductGroupWidgetDependencyProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getProductViewBulkExpanderPlugins() 0 4 1
A getProductViewExpanderPlugins() 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\ProductGroupWidget;
11
12
use SprykerShop\Yves\CartPage\Plugin\ProductGroupWidget\AddToCartUrlProductViewExpanderPlugin;
13
use SprykerShop\Yves\ProductGroupWidget\ProductGroupWidgetDependencyProvider as SprykerShopProductGroupWidgetDependencyProvider;
14
use SprykerShop\Yves\ProductLabelWidget\Plugin\ProductGroupWidget\ProductLabelProductViewExpanderPlugin;
15
use SprykerShop\Yves\ProductReviewWidget\Plugin\ProductGroupWidget\ProductReviewSummaryProductViewBulkExpanderPlugin;
16
17
class ProductGroupWidgetDependencyProvider extends SprykerShopProductGroupWidgetDependencyProvider
18
{
19
    /**
20
     * @return array<\SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewExpanderPluginInterface>
21
     */
22
    protected function getProductViewExpanderPlugins(): array
23
    {
24
        return [
25
            new AddToCartUrlProductViewExpanderPlugin(),
26
            new ProductLabelProductViewExpanderPlugin(),
27
        ];
28
    }
29
30
    /**
31
     * @return array<\SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewBulkExpanderPluginInterface>
32
     */
33
    protected function getProductViewBulkExpanderPlugins(): array
34
    {
35
        return [
36
            new ProductReviewSummaryProductViewBulkExpanderPlugin(),
0 ignored issues
show
Deprecated Code introduced by
The class SprykerShop\Yves\Product...tViewBulkExpanderPlugin has been deprecated: Will be removed without replacement. Use {@link \SprykerShop\Yves\ProductReviewWidget\Plugin\ProductGroupWidget\ProductReviewStorageProductViewExpanderPlugin} instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

36
            /** @scrutinizer ignore-deprecated */ new ProductReviewSummaryProductViewBulkExpanderPlugin(),
Loading history...
37
        ];
38
    }
39
}
40