Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/BunchSubject.php 2 locations

@@ 124-130 (lines=7) @@
121
        }
122
123
        // initialize media directory => can be absolute or relative
124
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::MEDIA_DIRECTORY)) {
125
            try {
126
                $this->setMediaDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::MEDIA_DIRECTORY)));
127
            } catch (\InvalidArgumentException $iae) {
128
                $this->getSystemLogger()->warning($iae);
129
            }
130
        }
131
132
        // initialize images directory => can be absolute or relative
133
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
@@ 133-139 (lines=7) @@
130
        }
131
132
        // initialize images directory => can be absolute or relative
133
        if ($this->getConfiguration()->hasParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)) {
134
            try {
135
                $this->setImagesFileDir($this->resolvePath($this->getConfiguration()->getParam(ConfigurationKeys::IMAGES_FILE_DIRECTORY)));
136
            } catch (\InvalidArgumentException $iae) {
137
                $this->getSystemLogger()->warning($iae);
138
            }
139
        }
140
141
        // prepare the callbacks
142
        parent::setUp($serial);