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

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