Code Duplication    Length = 14-14 lines in 2 locations

Sources/ManageSettings.php 1 location

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

Sources/Profile-Modify.php 1 location

@@ 3477-3490 (lines=14) @@
3474
			// ... and all HTML ones.
3475
			preg_match_all('~<img\s+src=(?:")?((?:http://|ftp://|https://|ftps://).+?)(?:")?(?:\s+alt=(?:")?(.*?)(?:")?)?(?:\s?/)?>~i', $unparsed_signature, $matches2, PREG_PATTERN_ORDER);
3476
			// And stick the HTML in the BBC.
3477
			if (!empty($matches2))
3478
			{
3479
				foreach ($matches2[0] as $ind => $dummy)
3480
				{
3481
					$matches[0][] = $matches2[0][$ind];
3482
					$matches[1][] = '';
3483
					$matches[2][] = '';
3484
					$matches[3][] = '';
3485
					$matches[4][] = '';
3486
					$matches[5][] = '';
3487
					$matches[6][] = '';
3488
					$matches[7][] = $matches2[1][$ind];
3489
				}
3490
			}
3491
3492
			$replaces = array();
3493
			// Try to find all the images!