@@ -108,12 +108,12 @@ |
||
| 108 | 108 | * List of allowed parameters of config |
| 109 | 109 | */ |
| 110 | 110 | public const ALLOWED = [ |
| 111 | - 'host' => 'string', // Address of Mikrotik RouterOS |
|
| 112 | - 'user' => 'string', // Username |
|
| 113 | - 'pass' => 'string', // Password |
|
| 111 | + 'host' => 'string', // Address of Mikrotik RouterOS |
|
| 112 | + 'user' => 'string', // Username |
|
| 113 | + 'pass' => 'string', // Password |
|
| 114 | 114 | 'port' => 'integer', // RouterOS API port number for access (if not set use default or default with SSL if SSL enabled) |
| 115 | 115 | 'ssl' => 'boolean', // Enable ssl support (if port is not set this parameter must change default port to ssl port) |
| 116 | - 'ssl_options' => 'array', // List of SSL options, eg. |
|
| 116 | + 'ssl_options' => 'array', // List of SSL options, eg. |
|
| 117 | 117 | 'legacy' => 'boolean', // Support of legacy login scheme (true - pre 6.43, false - post 6.43) |
| 118 | 118 | 'timeout' => 'integer', // Max timeout for instantiating connection with RouterOS |
| 119 | 119 | 'socket_timeout' => 'integer', // Max timeout for read from RouterOS |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // Set blocking mode on a stream |
| 64 | - if ($this->config('socket_blocking') === true){ |
|
| 64 | + if ($this->config('socket_blocking') === true) { |
|
| 65 | 65 | stream_set_blocking($socket, true); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $result = fread($this->stream, $length); |
| 52 | 52 | |
| 53 | 53 | // Stream in blocking mode timed out |
| 54 | - if(socket_get_status($this->stream)['timed_out']){ |
|
| 54 | + if (socket_get_status($this->stream)['timed_out']) { |
|
| 55 | 55 | throw new StreamException('Stream timed out'); |
| 56 | 56 | } |
| 57 | 57 | |