Code Duplication    Length = 3-5 lines in 2 locations

php/elFinderVolumeFTP.class.php 1 location

@@ 172-176 (lines=5) @@
169
		// normalize root path
170
		$this->root = $this->options['path'] = $this->_normpath($this->options['path']);
171
		
172
		if (empty($this->options['alias'])) {
173
			$this->options['alias'] = $this->options['user'].'@'.$this->options['host'];
174
			// $num = elFinder::$volumesCnt-1;
175
			// $this->options['alias'] = $this->root == '/' || $this->root == '.' ? 'FTP folder '.$num : basename($this->root);
176
		}
177
178
		$this->rootName = $this->options['alias'];
179
		$this->options['separator'] = '/';

php/elFinderVolumeDropbox.class.php 1 location

@@ 332-334 (lines=3) @@
329
		// normalize root path
330
		$this->root = $this->options['path'] = $this->_normpath($this->options['path']);
331
332
		if (empty($this->options['alias'])) {
333
			$this->options['alias'] = ($this->options['path'] === '/')? 'Dropbox.com'  : 'Dropbox'.$this->options['path'];
334
		}
335
336
		$this->rootName = $this->options['alias'];
337