Code Duplication    Length = 11-11 lines in 2 locations

src/Observers/ProductMediaObserver.php 2 locations

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