Code Duplication    Length = 2-4 lines in 2 locations

Sources/ManageSettings.php 1 location

@@ 1098-1101 (lines=4) @@
1095
							}
1096
1097
							// Did we come up with some changes? If so remake the string.
1098
							if ($width != -1 || $height != -1)
1099
							{
1100
								$replaces[$image] = '[img' . ($width != -1 ? ' width=' . round($width) : '') . ($height != -1 ? ' height=' . round($height) : '') . ']' . $matches[7][$key] . '[/img]';
1101
							}
1102
1103
							// Record that we got one.
1104
							$image_count_holder[$image] = isset($image_count_holder[$image]) ? $image_count_holder[$image] + 1 : 1;

Sources/Profile-Modify.php 1 location

@@ 3546-3547 (lines=2) @@
3543
					}
3544
3545
					// Did we come up with some changes? If so remake the string.
3546
					if ($width != -1 || $height != -1)
3547
						$replaces[$image] = '[img' . ($width != -1 ? ' width=' . round($width) : '') . ($height != -1 ? ' height=' . round($height) : '') . ']' . $matches[7][$key] . '[/img]';
3548
				}
3549
				if (!empty($replaces))
3550
					$value = str_replace(array_keys($replaces), array_values($replaces), $value);