Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

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