Code Duplication    Length = 2-2 lines in 2 locations

Sources/Profile-Modify.php 1 location

@@ 589-590 (lines=2) @@
586
			{
587
				if (strlen(trim($value)) > 0 && strpos($value, '://') === false)
588
					$value = 'http://' . $value;
589
				if (strlen($value) < 8 || (substr($value, 0, 7) !== 'http://' && substr($value, 0, 8) !== 'https://'))
590
					$value = '';
591
				$value = (string) validate_iri(sanitize_iri($value));
592
				return true;
593
			},

Sources/Subs-Package.php 1 location

@@ 1277-1278 (lines=2) @@
1274
			if (strlen(trim($url)) > 0 && substr($url, 0, 7) !== 'http://' && substr($url, 0, 8) !== 'https://')
1275
			{
1276
				$url = 'http://' . $url;
1277
				if (strlen($url) < 8 || (substr($url, 0, 7) !== 'http://' && substr($url, 0, 8) !== 'https://'))
1278
					$url = '';
1279
			}
1280
1281
			$return[] = array(