Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

@@ 853-855 (lines=3) @@
850
		}
851
852
		// get current working directory files list and add to $files if not exists in it
853
		if (($ls = $volume->scandir($cwd['hash'])) === false) {
854
			return array('error' => $this->error(self::ERROR_OPEN, $cwd['name'], $volume->error()));
855
		}
856
		// long polling mode
857
		if ($args['compare']) {
858
			$sleep = max(1, (int)$volume->getOption('lsPlSleep'));
@@ 880-882 (lines=3) @@
877
					}
878
				}
879
			} while($limit);
880
			if ($ls === false) {
881
				return array('error' => $this->error(self::ERROR_OPEN, $cwd['name'], $volume->error()));
882
			}
883
		}
884
		
885
		if ($ls) {