Code Duplication    Length = 3-3 lines in 2 locations

lib/elFinder.class.php 2 locations

@@ 1635-1637 (lines=3) @@
1632
        $files = [];
1633
1634
        // get current working directory files list
1635
        if (($ls = $volume->scandir($cwd['hash'])) === false) {
1636
            return ['error' => $this->error(self::ERROR_OPEN, $cwd['name'], $volume->error())];
1637
        }
1638
1639
        if (isset($cwd['dirs']) && $cwd['dirs'] != 1) {
1640
            $cwd = $volume->dir($target);
@@ 1676-1678 (lines=3) @@
1673
                    }
1674
                }
1675
            } while ($limit);
1676
            if ($ls === false) {
1677
                return ['error' => $this->error(self::ERROR_OPEN, $cwd['name'], $volume->error())];
1678
            }
1679
        }
1680
1681
        if ($ls) {