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

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