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

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