Code Duplication    Length = 7-7 lines in 2 locations

Sources/ManageSettings.php 1 location

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

Sources/Profile-Modify.php 1 location

@@ 3610-3616 (lines=7) @@
3607
					// Does it have predefined restraints? Width first.
3608
					if ($matches[6][$key])
3609
						$matches[2][$key] = $matches[6][$key];
3610
					if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
3611
					{
3612
						$width = $sig_limits[5];
3613
						$matches[4][$key] = $matches[4][$key] * ($width / $matches[2][$key]);
3614
					}
3615
					elseif ($matches[2][$key])
3616
						$width = $matches[2][$key];
3617
					// ... and height.
3618
					if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
3619
					{