Code Duplication    Length = 13-13 lines in 2 locations

src/Observers/BundleOptionObserver.php 1 location

@@ 65-77 (lines=13) @@
62
     * @param \TechDivision\Import\Observers\AttributeLoaderInterface|null                 $attributeLoader        The attribute loader instance
63
     * @param \TechDivision\Import\Observers\StateDetectorInterface|null                   $stateDetector          The state detector instance
64
     */
65
    public function __construct(
66
        ProductBundleProcessorInterface $productBundleProcessor,
67
        AttributeLoaderInterface $attributeLoader = null,
68
        StateDetectorInterface $stateDetector = null
69
    ) {
70
71
        // initialize the product bundle processor and the attribute loader instance
72
        $this->productBundleProcessor = $productBundleProcessor;
73
        $this->attributeLoader = $attributeLoader;
74
75
        // pass the state detector to the parent method
76
        parent::__construct($stateDetector);
77
    }
78
79
    /**
80
     * Return's the product bundle processor instance.

src/Observers/BundleSelectionObserver.php 1 location

@@ 65-77 (lines=13) @@
62
     * @param \TechDivision\Import\Observers\AttributeLoaderInterface|null                 $attributeLoader        The attribute loader instance
63
     * @param \TechDivision\Import\Observers\StateDetectorInterface|null                   $stateDetector          The state detector instance
64
     */
65
    public function __construct(
66
        ProductBundleProcessorInterface $productBundleProcessor,
67
        AttributeLoaderInterface $attributeLoader = null,
68
        StateDetectorInterface $stateDetector = null
69
    ) {
70
71
        // initialize the product bundle processor and the attribute loader instance
72
        $this->productBundleProcessor = $productBundleProcessor;
73
        $this->attributeLoader = $attributeLoader;
74
75
        // pass the state detector to the parent method
76
        parent::__construct($stateDetector);
77
    }
78
79
    /**
80
     * Return's the product bundle processor instance.