Code Duplication    Length = 2-4 lines in 2 locations

Sources/ManageSettings.php 1 location

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

Sources/Profile-Modify.php 1 location

@@ 3571-3572 (lines=2) @@
3568
					}
3569
3570
					// Did we come up with some changes? If so remake the string.
3571
					if ($width != -1 || $height != -1)
3572
						$replaces[$image] = '[img' . ($width != -1 ? ' width=' . round($width) : '') . ($height != -1 ? ' height=' . round($height) : '') . ']' . $matches[7][$key] . '[/img]';
3573
				}
3574
				if (!empty($replaces))
3575
					$value = str_replace(array_keys($replaces), array_values($replaces), $value);