Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/OptionSubject.php 2 locations

@@ 79-85 (lines=7) @@
76
        }
77
78
        // initialize media directory => can be absolute or relative
79
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::MEDIA_DIRECTORY)) {
80
            try {
81
                $this->setMediaDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::MEDIA_DIRECTORY)));
82
            } catch (\InvalidArgumentException $iae) {
83
                $this->getSystemLogger()->warning($iae);
84
            }
85
        }
86
87
        // initialize images directory => can be absolute or relative
88
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
@@ 88-94 (lines=7) @@
85
        }
86
87
        // initialize images directory => can be absolute or relative
88
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
89
            try {
90
                $this->setImagesFileDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)));
91
            } catch (\InvalidArgumentException $iae) {
92
                $this->getSystemLogger()->warning($iae);
93
            }
94
        }
95
96
        // prepare the callbacks
97
        parent::setUp($serial);