Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/BunchSubject.php 2 locations

@@ 187-193 (lines=7) @@
184
        }
185
186
        // initialize media directory => can be absolute or relative
187
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::MEDIA_DIRECTORY)) {
188
            try {
189
                $this->setMediaDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::MEDIA_DIRECTORY)));
190
            } catch (\InvalidArgumentException $iae) {
191
                $this->getSystemLogger()->warning($iae);
192
            }
193
        }
194
195
        // initialize images directory => can be absolute or relative
196
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
@@ 196-202 (lines=7) @@
193
        }
194
195
        // initialize images directory => can be absolute or relative
196
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
197
            try {
198
                $this->setImagesFileDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)));
199
            } catch (\InvalidArgumentException $iae) {
200
                $this->getSystemLogger()->warning($iae);
201
            }
202
        }
203
204
        // invoke the parent method
205
        parent::setUp($serial);