Code Duplication    Length = 7-7 lines in 2 locations

Sources/ManageSettings.php 1 location

@@ 1055-1061 (lines=7) @@
1052
							// Does it have predefined restraints? Width first.
1053
							if ($matches[6][$key])
1054
								$matches[2][$key] = $matches[6][$key];
1055
							if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
1056
							{
1057
								$width = $sig_limits[5];
1058
								$matches[4][$key] = $matches[4][$key] * ($width / $matches[2][$key]);
1059
							}
1060
							elseif ($matches[2][$key])
1061
								$width = $matches[2][$key];
1062
							// ... and height.
1063
							if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
1064
							{

Sources/Profile-Modify.php 1 location

@@ 3503-3509 (lines=7) @@
3500
					// Does it have predefined restraints? Width first.
3501
					if ($matches[6][$key])
3502
						$matches[2][$key] = $matches[6][$key];
3503
					if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
3504
					{
3505
						$width = $sig_limits[5];
3506
						$matches[4][$key] = $matches[4][$key] * ($width / $matches[2][$key]);
3507
					}
3508
					elseif ($matches[2][$key])
3509
						$width = $matches[2][$key];
3510
					// ... and height.
3511
					if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
3512
					{