@@ -161,7 +161,7 @@ |
||
| 161 | 161 | throw new RuntimeException('SSL Error'); |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - $this->getSocket(); |
|
| 164 | + $this->getSocket(); |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | public function setConfig(array $config) |
| 109 | 109 | { |
| 110 | 110 | foreach ($this->configurable as $setting) { |
| 111 | - if ( ! isset($config[$setting])) { |
|
| 111 | + if (!isset($config[$setting])) { |
|
| 112 | 112 | continue; |
| 113 | 113 | } |
| 114 | 114 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $sslContext |
| 145 | 145 | ); |
| 146 | 146 | |
| 147 | - if ( ! $this->_connection) { |
|
| 147 | + if (!$this->_connection) { |
|
| 148 | 148 | throw new RuntimeException('Could not connect to host: ' |
| 149 | 149 | . $this->host |
| 150 | 150 | . ', port:' . $this->port |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | stream_set_blocking($this->_connection, true); |
| 155 | 155 | |
| 156 | - set_error_handler(function () {}); |
|
| 156 | + set_error_handler(function() {}); |
|
| 157 | 157 | $enableCryptoResult = stream_socket_enable_crypto($this->_connection, true, STREAM_CRYPTO_METHOD_SSLv23_CLIENT); |
| 158 | 158 | restore_error_handler(); |
| 159 | 159 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | protected function getConnection() |
| 171 | 171 | { |
| 172 | - if (! is_resource($this->_connection)) { |
|
| 172 | + if (!is_resource($this->_connection)) { |
|
| 173 | 173 | $this->disconnect(); |
| 174 | 174 | $this->connect(); |
| 175 | 175 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | return; |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | - $writeBinn= new BinnList; |
|
| 192 | + $writeBinn = new BinnList; |
|
| 193 | 193 | |
| 194 | 194 | $writeBinn->addInt16(self::DAEMON_SERVER_MODE_AUTH); |
| 195 | 195 | $writeBinn->addStr($username); |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | $read = fread($this->getConnection(), $len); |
| 251 | 251 | |
| 252 | 252 | if ($read === false) { |
| 253 | - throw new RuntimeException('Socket read failed: ' ); |
|
| 253 | + throw new RuntimeException('Socket read failed: '); |
|
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | return $notTrimEndSymbols ? $read : substr($read, 0, -4); |