Code Duplication    Length = 13-14 lines in 2 locations

lib/elFinderVolumeLocalFileSystem.class.php 2 locations

@@ 834-846 (lines=13) @@
831
     * @return string|bool
832
     * @author Dmitry (dio) Levashov
833
     **/
834
    protected function _mkdir($path, $name)
835
    {
836
        $path = $this->_joinPath($path, $name);
837
838
        if (mkdir($path)) {
839
            chmod($path, $this->options['dirMode']);
840
            clearstatcache();
841
842
            return $path;
843
        }
844
845
        return false;
846
    }
847
848
    /**
849
     * Create file and return it's path or false on failed.
@@ 856-869 (lines=14) @@
853
     * @return string|bool
854
     * @author Dmitry (dio) Levashov
855
     **/
856
    protected function _mkfile($path, $name)
857
    {
858
        $path = $this->_joinPath($path, $name);
859
860
        if (($fp = fopen($path, 'w'))) {
861
            fclose($fp);
862
            chmod($path, $this->options['fileMode']);
863
            clearstatcache();
864
865
            return $path;
866
        }
867
868
        return false;
869
    }
870
871
    /**
872
     * Create symlink.