Code Duplication    Length = 7-7 lines in 2 locations

Sources/ManageSettings.php 1 location

@@ 1061-1067 (lines=7) @@
1058
							// Does it have predefined restraints? Width first.
1059
							if ($matches[6][$key])
1060
								$matches[2][$key] = $matches[6][$key];
1061
							if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
1062
							{
1063
								$width = $sig_limits[5];
1064
								$matches[4][$key] = $matches[4][$key] * ($width / $matches[2][$key]);
1065
							}
1066
							elseif ($matches[2][$key])
1067
								$width = $matches[2][$key];
1068
							// ... and height.
1069
							if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
1070
							{

Sources/Profile-Modify.php 1 location

@@ 3528-3534 (lines=7) @@
3525
					// Does it have predefined restraints? Width first.
3526
					if ($matches[6][$key])
3527
						$matches[2][$key] = $matches[6][$key];
3528
					if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
3529
					{
3530
						$width = $sig_limits[5];
3531
						$matches[4][$key] = $matches[4][$key] * ($width / $matches[2][$key]);
3532
					}
3533
					elseif ($matches[2][$key])
3534
						$width = $matches[2][$key];
3535
					// ... and height.
3536
					if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
3537
					{