@@ -34,7 +34,7 @@ |
||
| 34 | 34 | parent::__construct($configuration, $authentication); |
| 35 | 35 | |
| 36 | 36 | $this->sftp = @ssh2_sftp($this->connection); |
| 37 | - if(!$this->sftp) |
|
| 37 | + if (!$this->sftp) |
|
| 38 | 38 | { |
| 39 | 39 | throw new \RuntimeException($this->get_error_message()); |
| 40 | 40 | } |
@@ -95,8 +95,7 @@ |
||
| 95 | 95 | if (preg_match('/^-.*$/', $key, $matches)) |
| 96 | 96 | { |
| 97 | 97 | $this->arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
| 98 | - } |
|
| 99 | - else |
|
| 98 | + } else |
|
| 100 | 99 | { |
| 101 | 100 | $this->arguments[] = is_array($value) ? implode(' ', $value) : $value; |
| 102 | 101 | } |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | $error = $ssh->get_error(); |
| 143 | 143 | $retval = $ssh->get_exitstatus(); |
| 144 | 144 | |
| 145 | - if ($strict && $retval != 0 ) |
|
| 145 | + if ($strict && $retval != 0) |
|
| 146 | 146 | { |
| 147 | 147 | throw new \RuntimeException($error); |
| 148 | 148 | } |