Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/BunchSubject.php 2 locations

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