@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $auth = @ssh2_auth_none($resource, $this->username); |
| 38 | 38 | if (is_array($auth)) |
| 39 | 39 | { |
| 40 | - throw new \RuntimeException('Username based authentication failed, supported methods include: ' . implode(', ', $auth)); |
|
| 40 | + throw new \RuntimeException('Username based authentication failed, supported methods include: '.implode(', ', $auth)); |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | final public function get_error_message() |
| 125 | 125 | { |
| 126 | 126 | $this->error_message = error_get_last()['message']; |
| 127 | - return $this->error_message . ' in ' . $this->get_error_file() . ' on line ' . $this->get_error_line(); |
|
| 127 | + return $this->error_message.' in '.$this->get_error_file().' on line '.$this->get_error_line(); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | if (preg_match('/^-.*$/', $key, $matches)) |
| 72 | 72 | { |
| 73 | - $options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
|
| 73 | + $options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT).$value; |
|
| 74 | 74 | } |
| 75 | 75 | if (preg_match('/^-.*$/', $value, $matches)) |
| 76 | 76 | { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | { |
| 95 | 95 | if (preg_match('/^-.*$/', $key, $matches)) |
| 96 | 96 | { |
| 97 | - $arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
|
| 97 | + $arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT).$value; |
|
| 98 | 98 | } |
| 99 | 99 | else |
| 100 | 100 | { |
@@ -95,8 +95,7 @@ |
||
| 95 | 95 | if (preg_match('/^-.*$/', $key, $matches)) |
| 96 | 96 | { |
| 97 | 97 | $arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
| 98 | - } |
|
| 99 | - else |
|
| 98 | + } else |
|
| 100 | 99 | { |
| 101 | 100 | $arguments[] = is_array($value) ? implode(' ', $value) : $value; |
| 102 | 101 | } |
@@ -320,10 +320,12 @@ |
||
| 320 | 320 | */ |
| 321 | 321 | final public function get_methods() |
| 322 | 322 | { |
| 323 | - if (if (isset($this->methods)) || !empty($this->methods)) |
|
| 323 | + if (if (isset($this->methods)) { |
|
| 324 | + || !empty($this->methods)) |
|
| 324 | 325 | { |
| 325 | 326 | return $this->methods; |
| 326 | 327 | } |
| 328 | + } |
|
| 327 | 329 | } |
| 328 | 330 | |
| 329 | 331 | /** |