Code Duplication    Length = 2-4 lines in 2 locations

Sources/Profile-Modify.php 1 location

@@ 3587-3588 (lines=2) @@
3584
					}
3585
3586
					// Did we come up with some changes? If so remake the string.
3587
					if ($width != -1 || $height != -1)
3588
						$replaces[$image] = '[img' . ($width != -1 ? ' width=' . round($width) : '') . ($height != -1 ? ' height=' . round($height) : '') . ']' . $matches[7][$key] . '[/img]';
3589
				}
3590
				if (!empty($replaces))
3591
					$value = str_replace(array_keys($replaces), array_values($replaces), $value);

Sources/ManageSettings.php 1 location

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