@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | // filter out empty user provided values |
| 82 | 82 | $options_array = array_filter( |
| 83 | 83 | $options_array, |
| 84 | - function ($var) { |
|
| 84 | + function($var) { |
|
| 85 | 85 | return !is_null($var); |
| 86 | 86 | } |
| 87 | 87 | ); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | // Socket initialization may fail, before system call connect() |
| 116 | 116 | // so the $errno is 0 and $errstr isn't populated . |
| 117 | 117 | // see https://www.php.net/manual/en/function.stream-socket-client.php#refsect1-function.stream-socket-client-errors |
| 118 | - throw new Exception(sprintf('problem initializing socket: %s code: [%d]',$errstr, $errno), $errno); |
|
| 118 | + throw new Exception(sprintf('problem initializing socket: %s code: [%d]', $errstr, $errno), $errno); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | // set stream time out |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | $buffer = (string) $frame; |
| 194 | 194 | $header = pack('N', mb_strlen($buffer, 'ASCII') + 4); |
| 195 | 195 | |
| 196 | - return $this->send($header . $buffer); |
|
| 196 | + return $this->send($header.$buffer); |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | protected function log($message, $color = '0;32') |