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
				return true;
592
			},
593
			'link_with' => 'website',

Sources/Subs-Package.php 1 location

@@ 1271-1272 (lines=2) @@
1268
			if (strlen(trim($url)) > 0 && substr($url, 0, 7) !== 'http://' && substr($url, 0, 8) !== 'https://')
1269
			{
1270
				$url = 'http://' . $url;
1271
				if (strlen($url) < 8 || (substr($url, 0, 7) !== 'http://' && substr($url, 0, 8) !== 'https://'))
1272
					$url = '';
1273
			}
1274
1275
			$return[] = array(