Code Duplication    Length = 2-4 lines in 2 locations

Sources/ManageSettings.php 1 location

@@ 1108-1111 (lines=4) @@
1105
							}
1106
1107
							// Did we come up with some changes? If so remake the string.
1108
							if ($width != -1 || $height != -1)
1109
							{
1110
								$replaces[$image] = '[img' . ($width != -1 ? ' width=' . round($width) : '') . ($height != -1 ? ' height=' . round($height) : '') . ']' . $matches[7][$key] . '[/img]';
1111
							}
1112
1113
							// Record that we got one.
1114
							$image_count_holder[$image] = isset($image_count_holder[$image]) ? $image_count_holder[$image] + 1 : 1;

Sources/Profile-Modify.php 1 location

@@ 3653-3654 (lines=2) @@
3650
					}
3651
3652
					// Did we come up with some changes? If so remake the string.
3653
					if ($width != -1 || $height != -1)
3654
						$replaces[$image] = '[img' . ($width != -1 ? ' width=' . round($width) : '') . ($height != -1 ? ' height=' . round($height) : '') . ']' . $matches[7][$key] . '[/img]';
3655
				}
3656
				if (!empty($replaces))
3657
					$value = str_replace(array_keys($replaces), array_values($replaces), $value);