@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | protected static function encodePassword($password) |
| 145 | 145 | { |
| 146 | - $password = "\"" . $password . "\""; |
|
| 146 | + $password = "\"".$password."\""; |
|
| 147 | 147 | $adpassword = mb_convert_encoding($password, "UTF-16LE", "UTF-8"); |
| 148 | 148 | return $adpassword; |
| 149 | 149 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | */ |
| 191 | 191 | public function open($anonymous = false) |
| 192 | 192 | { |
| 193 | - $token = 'Opening LDAP connection: ' . LdapHelper::recursiveImplode($this->dc, ' or '); |
|
| 193 | + $token = 'Opening LDAP connection: '.LdapHelper::recursiveImplode($this->dc, ' or '); |
|
| 194 | 194 | Yii::info($token, __METHOD__); |
| 195 | 195 | Yii::beginProfile($token, __METHOD__); |
| 196 | 196 | // Connect to the LDAP server. |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | protected function connect($hostname = [], $port = 389) |
| 218 | 218 | { |
| 219 | 219 | if (is_array($hostname)) { |
| 220 | - $hostname = self::PROTOCOL . implode(' ' . self::PROTOCOL, $hostname); |
|
| 220 | + $hostname = self::PROTOCOL.implode(' '.self::PROTOCOL, $hostname); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | $this->close(); |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | $this->open(); |
| 337 | 337 | $results = []; |
| 338 | 338 | $cookie = ''; |
| 339 | - $token = $function . ' - params: ' . LdapHelper::recursiveImplode($params, ';'); |
|
| 339 | + $token = $function.' - params: '.LdapHelper::recursiveImplode($params, ';'); |
|
| 340 | 340 | |
| 341 | 341 | Yii::info($token, 'chrmorandi\ldap\Connection::query'); |
| 342 | 342 | |