Code Duplication    Length = 2-5 lines in 2 locations

Sources/Class-Package.php 1 location

@@ 1157-1158 (lines=2) @@
1154
1155
				$path = strtr($_SERVER['DOCUMENT_ROOT'], array('/home/' . $match[1] . '/' => '', '/home2/' . $match[1] . '/' => ''));
1156
1157
				if (substr($path, -1) == '/')
1158
					$path = substr($path, 0, -1);
1159
1160
				if (strlen(dirname($_SERVER['PHP_SELF'])) > 1)
1161
					$path .= dirname($_SERVER['PHP_SELF']);

Sources/PersonalMessage.php 1 location

@@ 2574-2578 (lines=5) @@
2571
				$type = 'add';
2572
				$action = substr($action, 4);
2573
			}
2574
			elseif (substr($action, 0, 4) == 'rem_')
2575
			{
2576
				$type = 'rem';
2577
				$action = substr($action, 4);
2578
			}
2579
			else
2580
				$type = 'unk';
2581