Code Duplication    Length = 13-13 lines in 2 locations

src/Observers/BundleOptionObserver.php 1 location

@@ 83-95 (lines=13) @@
80
     * @param \TechDivision\Import\Observers\AttributeLoaderInterface|null                 $attributeLoader        The attribute loader instance
81
     * @param \TechDivision\Import\Observers\StateDetectorInterface|null                   $stateDetector          The state detector instance
82
     */
83
    public function __construct(
84
        ProductBundleProcessorInterface $productBundleProcessor,
85
        AttributeLoaderInterface $attributeLoader = null,
86
        StateDetectorInterface $stateDetector = null
87
    ) {
88
89
        // initialize the product bundle processor and the attribute loader instance
90
        $this->productBundleProcessor = $productBundleProcessor;
91
        $this->attributeLoader = $attributeLoader;
92
93
        // pass the state detector to the parent method
94
        parent::__construct($stateDetector);
95
    }
96
97
    /**
98
     * Return's the product bundle processor instance.

src/Observers/BundleSelectionObserver.php 1 location

@@ 93-105 (lines=13) @@
90
     * @param \TechDivision\Import\Observers\AttributeLoaderInterface|null                 $attributeLoader        The attribute loader instance
91
     * @param \TechDivision\Import\Observers\StateDetectorInterface|null                   $stateDetector          The state detector instance
92
     */
93
    public function __construct(
94
        ProductBundleProcessorInterface $productBundleProcessor,
95
        AttributeLoaderInterface $attributeLoader = null,
96
        StateDetectorInterface $stateDetector = null
97
    ) {
98
99
        // initialize the product bundle processor and the attribute loader instance
100
        $this->productBundleProcessor = $productBundleProcessor;
101
        $this->attributeLoader = $attributeLoader;
102
103
        // pass the state detector to the parent method
104
        parent::__construct($stateDetector);
105
    }
106
107
    /**
108
     * Return's the product bundle processor instance.