Code Duplication    Length = 8-8 lines in 2 locations

Sources/ManageSettings.php 1 location

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

Sources/Profile-Modify.php 1 location

@@ 3618-3625 (lines=8) @@
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
					{
3620
						$height = $sig_limits[6];
3621
						if ($width != -1)
3622
							$width = $width * ($height / $matches[4][$key]);
3623
					}
3624
					elseif ($matches[4][$key])
3625
						$height = $matches[4][$key];
3626
3627
					// If the dimensions are still not fixed - we need to check the actual image.
3628
					if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6]))