Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/BunchSubject.php 2 locations

@@ 206-212 (lines=7) @@
203
        }
204
205
        // initialize media directory => can be absolute or relative
206
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::MEDIA_DIRECTORY)) {
207
            try {
208
                $this->setMediaDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::MEDIA_DIRECTORY)));
209
            } catch (\InvalidArgumentException $iae) {
210
                $this->getSystemLogger()->warning($iae->getMessage());
211
            }
212
        }
213
214
        // initialize images directory => can be absolute or relative
215
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
@@ 215-221 (lines=7) @@
212
        }
213
214
        // initialize images directory => can be absolute or relative
215
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
216
            try {
217
                $this->setImagesFileDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)));
218
            } catch (\InvalidArgumentException $iae) {
219
                $this->getSystemLogger()->warning($iae->getMessage());
220
            }
221
        }
222
223
        // invoke the parent method
224
        parent::setUp($serial);