Code Duplication    Length = 7-7 lines in 2 locations

Sources/Profile-Modify.php 1 location

@@ 3544-3550 (lines=7) @@
3541
					// Does it have predefined restraints? Width first.
3542
					if ($matches[6][$key])
3543
						$matches[2][$key] = $matches[6][$key];
3544
					if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
3545
					{
3546
						$width = $sig_limits[5];
3547
						$matches[4][$key] = $matches[4][$key] * ($width / $matches[2][$key]);
3548
					}
3549
					elseif ($matches[2][$key])
3550
						$width = $matches[2][$key];
3551
					// ... and height.
3552
					if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
3553
					{

Sources/ManageSettings.php 1 location

@@ 1068-1074 (lines=7) @@
1065
							// Does it have predefined restraints? Width first.
1066
							if ($matches[6][$key])
1067
								$matches[2][$key] = $matches[6][$key];
1068
							if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
1069
							{
1070
								$width = $sig_limits[5];
1071
								$matches[4][$key] = $matches[4][$key] * ($width / $matches[2][$key]);
1072
							}
1073
							elseif ($matches[2][$key])
1074
								$width = $matches[2][$key];
1075
							// ... and height.
1076
							if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
1077
							{