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

@@ 1290-1291 (lines=2) @@
1287
			if (strlen(trim($url)) > 0 && substr($url, 0, 7) !== 'http://' && substr($url, 0, 8) !== 'https://')
1288
			{
1289
				$url = 'http://' . $url;
1290
				if (strlen($url) < 8 || (substr($url, 0, 7) !== 'http://' && substr($url, 0, 8) !== 'https://'))
1291
					$url = '';
1292
			}
1293
1294
			$return[] = array(