Code Duplication    Length = 6-7 lines in 3 locations

lib/elFinderVolumeFTP.class.php 3 locations

@@ 892-898 (lines=7) @@
889
	                $perm[$i] = [false, false, false];
890
	                $n = isset($mode[$i]) ? $mode[$i] : 0;
891
892
	                if ($n - 4 >= 0) {
893
	                    $perm[$i][0] = true;
894
	                    $n = $n - 4;
895
	                    $stat['perm'] .= 'r';
896
	                } else {
897
	                    $stat['perm'] .= '-';
898
	                }
899
900
	                if ($n - 2 >= 0) {
901
	                    $perm[$i][1] = true;
@@ 900-906 (lines=7) @@
897
	                    $stat['perm'] .= '-';
898
	                }
899
900
	                if ($n - 2 >= 0) {
901
	                    $perm[$i][1] = true;
902
	                    $n = $n - 2;
903
	                    $stat['perm'] .= 'w';
904
	                } else {
905
	                    $stat['perm'] .= '-';
906
	                }
907
908
	                if ($n - 1 == 0) {
909
	                    $perm[$i][2] = true;
@@ 908-913 (lines=6) @@
905
	                    $stat['perm'] .= '-';
906
	                }
907
908
	                if ($n - 1 == 0) {
909
	                    $perm[$i][2] = true;
910
	                    $stat['perm'] .= 'x';
911
	                } else {
912
	                    $stat['perm'] .= '-';
913
	                }
914
	            }
915
916
	            $stat['perm'] = trim($stat['perm']);