Code Duplication    Length = 7-7 lines in 2 locations

src/Subjects/BunchSubject.php 2 locations

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