Code Duplication    Length = 14-14 lines in 2 locations

Sources/ManageSettings.php 1 location

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

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!