Code Duplication    Length = 8-10 lines in 2 locations

php/elFinderVolumeLocalFileSystem.class.php 2 locations

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