@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if (isset($context[$name])) { |
| 71 | 71 | $context = $context[$name]; |
| 72 | 72 | } else { |
| 73 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
| 73 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
| 74 | 74 | } |
| 75 | 75 | if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) { |
| 76 | 76 | $this->sftp = $context['session']; |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | public function stream_open($path, $mode, $options, &$opened_path) { |
| 84 | 84 | [, $path] = explode('://', $path); |
| 85 | - $path = '/' . ltrim($path); |
|
| 85 | + $path = '/'.ltrim($path); |
|
| 86 | 86 | $path = str_replace('//', '/', $path); |
| 87 | 87 | |
| 88 | 88 | $this->loadContext('sftp'); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if (isset($context[$name])) { |
| 71 | 71 | $context = $context[$name]; |
| 72 | 72 | } else { |
| 73 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
| 73 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
| 74 | 74 | } |
| 75 | 75 | if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) { |
| 76 | 76 | $this->sftp = $context['session']; |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | public function stream_open($path, $mode, $options, &$opened_path) { |
| 84 | 84 | [, $path] = explode('://', $path); |
| 85 | - $path = '/' . ltrim($path); |
|
| 85 | + $path = '/'.ltrim($path); |
|
| 86 | 86 | $path = str_replace('//', '/', $path); |
| 87 | 87 | |
| 88 | 88 | $this->loadContext('sftp'); |