Code Duplication    Length = 8-8 lines in 2 locations

Sources/Profile-Modify.php 1 location

@@ 3552-3559 (lines=8) @@
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
					{
3554
						$height = $sig_limits[6];
3555
						if ($width != -1)
3556
							$width = $width * ($height / $matches[4][$key]);
3557
					}
3558
					elseif ($matches[4][$key])
3559
						$height = $matches[4][$key];
3560
3561
					// If the dimensions are still not fixed - we need to check the actual image.
3562
					if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6]))

Sources/ManageSettings.php 1 location

@@ 1076-1083 (lines=8) @@
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
							{
1078
								$height = $sig_limits[6];
1079
								if ($width != -1)
1080
									$width = $width * ($height / $matches[4][$key]);
1081
							}
1082
							elseif ($matches[4][$key])
1083
								$height = $matches[4][$key];
1084
1085
							// If the dimensions are still not fixed - we need to check the actual image.
1086
							if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6]))