Code Duplication    Length = 8-8 lines in 2 locations

Sources/ManageSettings.php 1 location

@@ 1069-1076 (lines=8) @@
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
							{
1071
								$height = $sig_limits[6];
1072
								if ($width != -1)
1073
									$width = $width * ($height / $matches[4][$key]);
1074
							}
1075
							elseif ($matches[4][$key])
1076
								$height = $matches[4][$key];
1077
1078
							// If the dimensions are still not fixed - we need to check the actual image.
1079
							if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6]))

Sources/Profile-Modify.php 1 location

@@ 3536-3543 (lines=8) @@
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
					{
3538
						$height = $sig_limits[6];
3539
						if ($width != -1)
3540
							$width = $width * ($height / $matches[4][$key]);
3541
					}
3542
					elseif ($matches[4][$key])
3543
						$height = $matches[4][$key];
3544
3545
					// If the dimensions are still not fixed - we need to check the actual image.
3546
					if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6]))