Code Duplication    Length = 7-7 lines in 2 locations

filemanager/inc/class.filemanager_merge.inc.php 1 location

@@ 113-119 (lines=7) @@
110
		$file['hsize'] = Vfs::hsize($file['size']);
111
		$file['mime'] = Vfs::mime_content_type($id);
112
		$file['gid'] *= -1;  // our widgets use negative gid's
113
		if (($props = Vfs::propfind($id)))
114
		{
115
			foreach($props as $prop)
116
			{
117
				$file[$prop['name']] = $prop['val'];
118
			}
119
		}
120
		if (($file['is_link'] = Vfs::is_link($id)))
121
		{
122
			$file['symlink'] = Vfs::readlink($id);

filemanager/inc/class.filemanager_ui.inc.php 1 location

@@ 1014-1020 (lines=7) @@
1011
				$content['hsize'] = Vfs::hsize($stat['size']);
1012
				$content['mime'] = Vfs::mime_content_type($path);
1013
				$content['gid'] *= -1;	// our widgets use negative gid's
1014
				if (($props = Vfs::propfind($path)))
1015
				{
1016
					foreach($props as $prop)
1017
					{
1018
						$content[$prop['name']] = $prop['val'];
1019
					}
1020
				}
1021
				if (($content['is_link'] = Vfs::is_link($path)))
1022
				{
1023
					$content['symlink'] = Vfs::readlink($path);