Code Duplication    Length = 8-10 lines in 2 locations

php/elFinderVolumeLocalFileSystem.class.php 2 locations

@@ 433-440 (lines=8) @@
430
		
431
		if ($uid) {
432
			$stat['isowner'] = ($phpuid == $uid);
433
			if (isset($names['uid'][$uid])) {
434
				$stat['owner'] = $names['uid'][$uid];
435
			} else if (is_callable('posix_getpwuid')) {
436
				$pwuid = posix_getpwuid($uid);
437
				$stat['owner'] = $names['uid'][$uid] = $pwuid['name'];
438
			} else {
439
				$stat['owner'] = $names['uid'][$uid] = $uid;
440
			}
441
		}
442
		if ($gid) {
443
			if (isset($names['gid'][$gid])) {
@@ 442-451 (lines=10) @@
439
				$stat['owner'] = $names['uid'][$uid] = $uid;
440
			}
441
		}
442
		if ($gid) {
443
			if (isset($names['gid'][$gid])) {
444
				$stat['group'] = $names['gid'][$gid];
445
			} else if (is_callable('posix_getgrgid')) {
446
				$grgid = posix_getgrgid($gid);
447
				$stat['group'] = $names['gid'][$gid] = $grgid['name'];
448
			} else {
449
				$stat['group'] = $names['gid'][$gid] = $gid;
450
			}
451
		}
452
		
453
		return $stat;
454
	}