Code Duplication    Length = 3-3 lines in 2 locations

apps/user_ldap/tests/integration/lib/integrationtestconnect.php 2 locations

@@ 46-48 (lines=3) @@
43
44
	public function __construct($host, $port, $bind, $pwd, $base) {
45
		// make sure host is a simple host name
46
		if(strpos($host, '://') !== false) {
47
			$host = substr_replace($host, '', 0, strpos($host, '://') + 3);
48
		}
49
		if(strpos($host, ':') !== false) {
50
			$host = substr_replace($host, '', strpos($host, ':'));
51
		}
@@ 49-51 (lines=3) @@
46
		if(strpos($host, '://') !== false) {
47
			$host = substr_replace($host, '', 0, strpos($host, '://') + 3);
48
		}
49
		if(strpos($host, ':') !== false) {
50
			$host = substr_replace($host, '', strpos($host, ':'));
51
		}
52
		$this->host = $host;
53
		$this->port = $port;
54
		parent::__construct($host, $port, $bind, $pwd, $base);