@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | public function setConfig(array $config) |
| 121 | 121 | { |
| 122 | 122 | foreach ($this->configurable as $setting) { |
| 123 | - if ( ! isset($config[$setting])) { |
|
| 123 | + if (!isset($config[$setting])) { |
|
| 124 | 124 | continue; |
| 125 | 125 | } |
| 126 | 126 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | ] |
| 151 | 151 | ]); |
| 152 | 152 | |
| 153 | - set_error_handler(function () {}); |
|
| 153 | + set_error_handler(function() {}); |
|
| 154 | 154 | $this->_connection = stream_socket_client("tls://{$this->host}:{$this->port}", |
| 155 | 155 | $errno, |
| 156 | 156 | $errstr, |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | ); |
| 161 | 161 | restore_error_handler(); |
| 162 | 162 | |
| 163 | - if ( ! $this->_connection) { |
|
| 163 | + if (!$this->_connection) { |
|
| 164 | 164 | throw new RuntimeException('Could not connect to host: ' |
| 165 | 165 | . $this->host |
| 166 | 166 | . ', port:' . $this->port |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | protected function getConnection() |
| 177 | 177 | { |
| 178 | - if (! is_resource($this->_connection)) { |
|
| 178 | + if (!is_resource($this->_connection)) { |
|
| 179 | 179 | $this->disconnect(); |
| 180 | 180 | $this->connect(); |
| 181 | 181 | } |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - $writeBinn= new BinnList; |
|
| 198 | + $writeBinn = new BinnList; |
|
| 199 | 199 | |
| 200 | 200 | $writeBinn->addInt16(self::DAEMON_SERVER_MODE_AUTH); |
| 201 | 201 | $writeBinn->addStr($username); |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | $read = fread($this->getConnection(), $len); |
| 257 | 257 | |
| 258 | 258 | if ($read === false) { |
| 259 | - throw new RuntimeException('Socket read failed: ' ); |
|
| 259 | + throw new RuntimeException('Socket read failed: '); |
|
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | return $notTrimEndSymbols ? $read : substr($read, 0, -4); |