diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 15:01:27 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 15:01:27 +0100 |
commit | 2ad2eb38e83a3b02038fa09ac72c9c4294a91248 (patch) | |
tree | 138f73ea684fbb929ee6eff6a7cefdc32e156724 /apps/user_ldap/lib/Wizard.php | |
parent | ca493ab5b1288d53f203d74117a8e636a606e633 (diff) | |
download | nextcloud-server-2ad2eb38e83a3b02038fa09ac72c9c4294a91248.tar.gz nextcloud-server-2ad2eb38e83a3b02038fa09ac72c9c4294a91248.zip |
Use type casting instead of *val() method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/user_ldap/lib/Wizard.php')
-rw-r--r-- | apps/user_ldap/lib/Wizard.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Wizard.php b/apps/user_ldap/lib/Wizard.php index 433bd2fb73a..57f900a8865 100644 --- a/apps/user_ldap/lib/Wizard.php +++ b/apps/user_ldap/lib/Wizard.php @@ -690,7 +690,7 @@ class Wizard extends LDAPUtility { if ($settingsFound === true) { $config = array( 'ldapPort' => $p, - 'ldapTLS' => intval($t) + 'ldapTLS' => (int)$t ); $this->configuration->setConfiguration($config); \OCP\Util::writeLog('user_ldap', 'Wiz: detected Port ' . $p, \OCP\Util::DEBUG); @@ -1069,7 +1069,7 @@ class Wizard extends LDAPUtility { if($login === true) { $this->ldap->unbind($cr); - \OCP\Util::writeLog('user_ldap', 'Wiz: Bind successful to Port '. $port . ' TLS ' . intval($tls), \OCP\Util::DEBUG); + \OCP\Util::writeLog('user_ldap', 'Wiz: Bind successful to Port '. $port . ' TLS ' . (int)$tls, \OCP\Util::DEBUG); return true; } @@ -1326,7 +1326,7 @@ class Wizard extends LDAPUtility { //636 ← LDAPS / SSL //7xxx ← UCS. need to be checked first, because both ports may be open $host = $this->configuration->ldapHost; - $port = intval($this->configuration->ldapPort); + $port = (int)$this->configuration->ldapPort; $portSettings = array(); //In case the port is already provided, we will check this first |