Code Duplication    Length = 5-7 lines in 2 locations

lib/elFinderVolumeDriver.class.php 1 location

@@ 3203-3209 (lines=7) @@
3200
        // set thumbnails path
3201
        $path = $this->options['tmbPath'];
3202
        if ($path) {
3203
            if (! file_exists($path)) {
3204
                if (mkdir($path)) {
3205
                    chmod($path, $this->options['tmbPathMode']);
3206
                } else {
3207
                    $path = '';
3208
                }
3209
            }
3210
3211
            if (is_dir($path) && is_readable($path)) {
3212
                $this->tmbPath = $path;

lib/elFinderVolumeMySQL.class.php 1 location

@@ 166-170 (lines=5) @@
163
        parent::configure();
164
165
        if (($tmp = $this->options['tmpPath'])) {
166
            if (! file_exists($tmp)) {
167
                if (mkdir($tmp)) {
168
                    chmod($tmp, $this->options['tmbPathMode']);
169
                }
170
            }
171
172
            $this->tmpPath = is_dir($tmp) && is_writable($tmp) ? $tmp : false;
173
        }