Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

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