Code Duplication    Length = 14-14 lines in 2 locations

Sources/Profile-Modify.php 1 location

@@ 3584-3597 (lines=14) @@
3581
			// ... and all HTML ones.
3582
			preg_match_all('~<img\s+src=(?:")?((?:http://|ftp://|https://|ftps://).+?)(?:")?(?:\s+alt=(?:")?(.*?)(?:")?)?(?:\s?/)?' . '>~i', $unparsed_signature, $matches2, PREG_PATTERN_ORDER);
3583
			// And stick the HTML in the BBC.
3584
			if (!empty($matches2))
3585
			{
3586
				foreach ($matches2[0] as $ind => $dummy)
3587
				{
3588
					$matches[0][] = $matches2[0][$ind];
3589
					$matches[1][] = '';
3590
					$matches[2][] = '';
3591
					$matches[3][] = '';
3592
					$matches[4][] = '';
3593
					$matches[5][] = '';
3594
					$matches[6][] = '';
3595
					$matches[7][] = $matches2[1][$ind];
3596
				}
3597
			}
3598
3599
			$replaces = array();
3600
			// Try to find all the images!

Sources/ManageSettings.php 1 location

@@ 1012-1025 (lines=14) @@
1009
					// ... and all HTML ones.
1010
					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);
1011
					// And stick the HTML in the BBC.
1012
					if (!empty($matches2))
1013
					{
1014
						foreach ($matches2[0] as $ind => $dummy)
1015
						{
1016
							$matches[0][] = $matches2[0][$ind];
1017
							$matches[1][] = '';
1018
							$matches[2][] = '';
1019
							$matches[3][] = '';
1020
							$matches[4][] = '';
1021
							$matches[5][] = '';
1022
							$matches[6][] = '';
1023
							$matches[7][] = $matches2[1][$ind];
1024
						}
1025
					}
1026
					// Try to find all the images!
1027
					if (!empty($matches))
1028
					{