Code Duplication    Length = 14-14 lines in 2 locations

Sources/Profile-Modify.php 1 location

@@ 3518-3531 (lines=14) @@
3515
			// ... and all HTML ones.
3516
			preg_match_all('~<img\s+src=(?:")?((?:http://|ftp://|https://|ftps://).+?)(?:")?(?:\s+alt=(?:")?(.*?)(?:")?)?(?:\s?/)?' . '>~i', $unparsed_signature, $matches2, PREG_PATTERN_ORDER);
3517
			// And stick the HTML in the BBC.
3518
			if (!empty($matches2))
3519
			{
3520
				foreach ($matches2[0] as $ind => $dummy)
3521
				{
3522
					$matches[0][] = $matches2[0][$ind];
3523
					$matches[1][] = '';
3524
					$matches[2][] = '';
3525
					$matches[3][] = '';
3526
					$matches[4][] = '';
3527
					$matches[5][] = '';
3528
					$matches[6][] = '';
3529
					$matches[7][] = $matches2[1][$ind];
3530
				}
3531
			}
3532
3533
			$replaces = array();
3534
			// Try to find all the images!

Sources/ManageSettings.php 1 location

@@ 1018-1031 (lines=14) @@
1015
					// ... and all HTML ones.
1016
					preg_match_all('~&lt;img\s+src=(?:&quot;)?((?:http://|ftp://|https://|ftps://).+?)(?:&quot;)?(?:\s+alt=(?:&quot;)?(.*?)(?:&quot;)?)?(?:\s?/)?&gt;~i', $sig, $matches2, PREG_PATTERN_ORDER);
1017
					// And stick the HTML in the BBC.
1018
					if (!empty($matches2))
1019
					{
1020
						foreach ($matches2[0] as $ind => $dummy)
1021
						{
1022
							$matches[0][] = $matches2[0][$ind];
1023
							$matches[1][] = '';
1024
							$matches[2][] = '';
1025
							$matches[3][] = '';
1026
							$matches[4][] = '';
1027
							$matches[5][] = '';
1028
							$matches[6][] = '';
1029
							$matches[7][] = $matches2[1][$ind];
1030
						}
1031
					}
1032
					// Try to find all the images!
1033
					if (!empty($matches))
1034
					{