Code Duplication    Length = 2-4 lines in 2 locations

Sources/ManageSettings.php 1 location

@@ 1105-1108 (lines=4) @@
1102
							}
1103
1104
							// Did we come up with some changes? If so remake the string.
1105
							if ($width != -1 || $height != -1)
1106
							{
1107
								$replaces[$image] = '[img' . ($width != -1 ? ' width=' . round($width) : '') . ($height != -1 ? ' height=' . round($height) : '') . ']' . $matches[7][$key] . '[/img]';
1108
							}
1109
1110
							// Record that we got one.
1111
							$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);