@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | foreach ($this->configurable as $setting) { |
| 142 | - if ( ! isset($config[$setting])) { |
|
| 142 | + if (!isset($config[$setting])) { |
|
| 143 | 143 | continue; |
| 144 | 144 | } |
| 145 | 145 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | ] |
| 170 | 170 | ]); |
| 171 | 171 | |
| 172 | - set_error_handler(function () {}); |
|
| 172 | + set_error_handler(function() {}); |
|
| 173 | 173 | $this->_connection = stream_socket_client("tls://{$this->host}:{$this->port}", |
| 174 | 174 | $errno, |
| 175 | 175 | $errstr, |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | ); |
| 180 | 180 | restore_error_handler(); |
| 181 | 181 | |
| 182 | - if ( ! $this->_connection) { |
|
| 182 | + if (!$this->_connection) { |
|
| 183 | 183 | throw new RuntimeException('Could not connect to host: ' |
| 184 | 184 | . $this->host |
| 185 | 185 | . ', port:' . $this->port |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | protected function getConnection() |
| 196 | 196 | { |
| 197 | - if (! is_resource($this->_connection)) { |
|
| 197 | + if (!is_resource($this->_connection)) { |
|
| 198 | 198 | $this->disconnect(); |
| 199 | 199 | $this->connect(); |
| 200 | 200 | $this->login(); |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | return; |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | - $writeBinn= new BinnList; |
|
| 218 | + $writeBinn = new BinnList; |
|
| 219 | 219 | |
| 220 | 220 | $writeBinn->addInt16(self::DAEMON_SERVER_MODE_AUTH); |
| 221 | 221 | $writeBinn->addStr($this->username); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | $read = fread($this->getConnection(), $len); |
| 277 | 277 | |
| 278 | 278 | if ($read === false) { |
| 279 | - throw new RuntimeException('Socket read failed: ' ); |
|
| 279 | + throw new RuntimeException('Socket read failed: '); |
|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | return $notTrimEndSymbols ? $read : substr($read, 0, -4); |