Code Duplication    Length = 3-3 lines in 2 locations

lib/elFinder.class.php 2 locations

@@ 2988-2990 (lines=3) @@
2985
	        return ['error' => $this->error(self::ERROR_OPEN, '#'.$target, self::ERROR_FILE_NOT_FOUND)];
2986
	    }
2987
2988
	    if (($content = $volume->getContents($target)) === false) {
2989
	        return ['error' => $this->error(self::ERROR_OPEN, $volume->path($target), $volume->error())];
2990
	    }
2991
2992
	    $mime = isset($file['mime']) ? $file['mime'] : '';
2993
	    if ($mime && strtolower(substr($mime, 0, 4)) === 'text') {
@@ 3112-3114 (lines=3) @@
3109
	            $args['content'] = $content;
3110
	        }
3111
	    }
3112
	    if (($file = $volume->putContents($target, $args['content'])) == false) {
3113
	        return ['error' => $this->error(self::ERROR_SAVE, $volume->path($target), $volume->error())];
3114
	    }
3115
3116
	    return ['changed' => [$file]];
3117
	}