Code Duplication    Length = 3-3 lines in 3 locations

php/elFinderVolumeFTP.class.php 3 locations

@@ 300-302 (lines=3) @@
297
		$info = preg_split("/\s+/", $raw, 9);
298
		$stat = array();
299
300
		if (!isset($this->ftpOsUnix)) {
301
			$this->ftpOsUnix = !preg_match('/\d/', substr($info[0], 0, 1));
302
		}
303
		if (!$this->ftpOsUnix) {
304
			$info = $this->normalizeRawWindows($raw);
305
		}
@@ 792-794 (lines=3) @@
789
		
790
		foreach (ftp_rawlist($this->connect, $path) as $str) {
791
			$info = preg_split('/\s+/', $str, 9);
792
			if (!isset($this->ftpOsUnix)) {
793
				$this->ftpOsUnix = !preg_match('/\d/', substr($info[0], 0, 1));
794
			}
795
			if (!$this->ftpOsUnix) {
796
				$info = $this->normalizeRawWindows($str);
797
			}
@@ 1336-1338 (lines=3) @@
1333
		}
1334
		foreach ($buff as $str) {
1335
			$info = preg_split("/\s+/", $str, 9);
1336
			if (!isset($this->ftpOsUnix)) {
1337
				$this->ftpOsUnix = !preg_match('/\d/', substr($info[0], 0, 1));
1338
			}
1339
			if (!$this->ftpOsUnix) {
1340
				$info = $this->normalizeRawWindows($str);
1341
			}