Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/BunchSubject.php 2 locations

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