Code Duplication    Length = 8-8 lines in 2 locations

Sources/ManageSettings.php 1 location

@@ 1063-1070 (lines=8) @@
1060
							elseif ($matches[2][$key])
1061
								$width = $matches[2][$key];
1062
							// ... and height.
1063
							if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
1064
							{
1065
								$height = $sig_limits[6];
1066
								if ($width != -1)
1067
									$width = $width * ($height / $matches[4][$key]);
1068
							}
1069
							elseif ($matches[4][$key])
1070
								$height = $matches[4][$key];
1071
1072
							// If the dimensions are still not fixed - we need to check the actual image.
1073
							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]))