Code Duplication    Length = 6-7 lines in 3 locations

php/elFinderVolumeFTP.class.php 3 locations

@@ 732-738 (lines=7) @@
729
					$perm[$i] = array(false, false, false);
730
					$n = isset($stat['chmod'][$i]) ? $stat['chmod'][$i] : 0;
731
					
732
					if ($n - 4 >= 0) {
733
						$perm[$i][0] = true;
734
						$n = $n - 4;
735
						$stat['perm'] .= 'r';
736
					} else {
737
						$stat['perm'] .= '-';
738
					}
739
					
740
					if ($n - 2 >= 0) {
741
						$perm[$i][1] = true;
@@ 740-746 (lines=7) @@
737
						$stat['perm'] .= '-';
738
					}
739
					
740
					if ($n - 2 >= 0) {
741
						$perm[$i][1] = true;
742
						$n = $n - 2;
743
						$stat['perm'] .= 'w';
744
					} else {
745
						$stat['perm'] .= '-';
746
					}
747
748
					if ($n - 1 == 0) {
749
						$perm[$i][2] = true;
@@ 748-753 (lines=6) @@
745
						$stat['perm'] .= '-';
746
					}
747
748
					if ($n - 1 == 0) {
749
						$perm[$i][2] = true;
750
						$stat['perm'] .= 'x';
751
					} else {
752
						$stat['perm'] .= '-';
753
					}
754
					
755
					$stat['perm'] .= ' ';
756
				}