Code Duplication    Length = 8-8 lines in 2 locations

Sources/ManageSettings.php 1 location

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

Sources/Profile-Modify.php 1 location

@@ 3511-3518 (lines=8) @@
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
					{
3513
						$height = $sig_limits[6];
3514
						if ($width != -1)
3515
							$width = $width * ($height / $matches[4][$key]);
3516
					}
3517
					elseif ($matches[4][$key])
3518
						$height = $matches[4][$key];
3519
3520
					// If the dimensions are still not fixed - we need to check the actual image.
3521
					if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6]))