Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/BunchSubject.php 2 locations

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