Code Duplication    Length = 8-10 lines in 2 locations

php/elFinderVolumeLocalFileSystem.class.php 2 locations

@@ 426-433 (lines=8) @@
423
		
424
		if ($uid) {
425
			$stat['isowner'] = ($phpuid == $uid);
426
			if (isset($names['uid'][$uid])) {
427
				$stat['owner'] = $names['uid'][$uid];
428
			} else if (is_callable('posix_getpwuid')) {
429
				$pwuid = posix_getpwuid($uid);
430
				$stat['owner'] = $names['uid'][$uid] = $pwuid['name'];
431
			} else {
432
				$stat['owner'] = $names['uid'][$uid] = $uid;
433
			}
434
		}
435
		if ($gid) {
436
			if (isset($names['gid'][$gid])) {
@@ 435-444 (lines=10) @@
432
				$stat['owner'] = $names['uid'][$uid] = $uid;
433
			}
434
		}
435
		if ($gid) {
436
			if (isset($names['gid'][$gid])) {
437
				$stat['group'] = $names['gid'][$gid];
438
			} else if (is_callable('posix_getgrgid')) {
439
				$grgid = posix_getgrgid($gid);
440
				$stat['group'] = $names['gid'][$gid] = $grgid['name'];
441
			} else {
442
				$stat['group'] = $names['gid'][$gid] = $gid;
443
			}
444
		}
445
		
446
		return $stat;
447
	}