@@ -25,9 +25,9 @@ |
||
| 25 | 25 | protected static $connections = []; |
| 26 | 26 | |
| 27 | 27 | public function openConnection($host, |
| 28 | - $port = SecureShell::DEFAULT_PORT, |
|
| 29 | - $auth = SecureShell::AUTH_PASSWORD, |
|
| 30 | - ...$args) |
|
| 28 | + $port = SecureShell::DEFAULT_PORT, |
|
| 29 | + $auth = SecureShell::AUTH_PASSWORD, |
|
| 30 | + ...$args) |
|
| 31 | 31 | { |
| 32 | 32 | $uid = null; |
| 33 | 33 | $callbacks = array('disconnect' => [$this, '_disconnect']); |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | |
| 123 | 123 | protected function _disconnect() |
| 124 | 124 | { |
| 125 | - foreach ($this->connections as $id => $connection){ |
|
| 125 | + foreach ($this->connections as $id => $connection) { |
|
| 126 | 126 | if (is_resource($connection['resource']) !== true) { |
| 127 | 127 | unset($this->connections[$id]); |
| 128 | 128 | } |