Code Duplication    Length = 3-3 lines in 3 locations

php/elFinderVolumeFTP.class.php 3 locations

@@ 296-298 (lines=3) @@
293
		$info = preg_split("/\s+/", $raw, 9);
294
		$stat = array();
295
296
		if (!isset($this->ftpOsUnix)) {
297
			$this->ftpOsUnix = !preg_match('/\d/', substr($info[0], 0, 1));
298
		}
299
		if (!$this->ftpOsUnix) {
300
			$info = $this->normalizeRawWindows($raw);
301
		}
@@ 787-789 (lines=3) @@
784
		
785
		foreach (ftp_rawlist($this->connect, $path) as $str) {
786
			$info = preg_split('/\s+/', $str, 9);
787
			if (!isset($this->ftpOsUnix)) {
788
				$this->ftpOsUnix = !preg_match('/\d/', substr($info[0], 0, 1));
789
			}
790
			if (!$this->ftpOsUnix) {
791
				$info = $this->normalizeRawWindows($str);
792
			}
@@ 1331-1333 (lines=3) @@
1328
		}
1329
		foreach ($buff as $str) {
1330
			$info = preg_split("/\s+/", $str, 9);
1331
			if (!isset($this->ftpOsUnix)) {
1332
				$this->ftpOsUnix = !preg_match('/\d/', substr($info[0], 0, 1));
1333
			}
1334
			if (!$this->ftpOsUnix) {
1335
				$info = $this->normalizeRawWindows($str);
1336
			}