Code Duplication    Length = 11-11 lines in 2 locations

src/Observers/ProductMediaObserver.php 2 locations

@@ 296-306 (lines=11) @@
293
     *
294
     * @return void
295
     */
296
    protected function loadImagesToHide()
297
    {
298
299
        // load the array with the images that has to be hidden
300
        $hideFromProductPage = $this->getValue(ColumnKeys::HIDE_FROM_PRODUCT_PAGE, array(), array($this, 'explode'));
301
302
        // map the image names, because probably they have been renamed by the upload functionality
303
        foreach ($hideFromProductPage as $filename) {
304
            $this->imagesToHide[] = $this->getImageMapping($filename);
305
        }
306
    }
307
308
    /**
309
     * Load the images that has to be disabled
@@ 313-323 (lines=11) @@
310
     *
311
     * @return void
312
     */
313
    protected function loadImagesToDisable()
314
    {
315
316
        // load the array with the images that has to be disabled
317
        $disabledImages = $this->getValue(ColumnKeys::DISABLED_IMAGES, array(), array($this, 'explode'));
318
319
        // map the image names, because probably they have been renamed by the upload functionality
320
        foreach ($disabledImages as $filename) {
321
            $this->disabledImages[] = $this->getImageMapping($filename);
322
        }
323
    }
324
325
    /**
326
     * Return's the array with the available image types and their label columns.