@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function fetchFrom($remoteFile, $localFile) |
| 57 | 57 | { |
| 58 | - $remoteData = file_get_contents('ssh2.sftp://' . intval($this->sftp) . $remoteFile); |
|
| 58 | + $remoteData = file_get_contents('ssh2.sftp://'.intval($this->sftp).$remoteFile); |
|
| 59 | 59 | if (!$remoteData) { |
| 60 | 60 | throw new \Exception('File can`t be loaded from the SFTP server.'); |
| 61 | 61 | } |
@@ -71,10 +71,10 @@ discard block |
||
| 71 | 71 | throw new \Exception('Local file doesn\'t exists.'); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - $sftp = "ssh2.sftp://" . intval($this->sftp); |
|
| 74 | + $sftp = "ssh2.sftp://".intval($this->sftp); |
|
| 75 | 75 | $data = file_get_contents($localFile); |
| 76 | 76 | |
| 77 | - if (!file_put_contents($sftp . $remoteFile, $data)) { |
|
| 77 | + if (!file_put_contents($sftp.$remoteFile, $data)) { |
|
| 78 | 78 | throw new \Exception('File could not be uploaded to the SFTP server.'); |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function getRemoteFilesList($dir) |
| 86 | 86 | { |
| 87 | - $handle = opendir("ssh2.sftp://" . intval($this->sftp) . $dir); |
|
| 87 | + $handle = opendir("ssh2.sftp://".intval($this->sftp).$dir); |
|
| 88 | 88 | $files = array(); |
| 89 | 89 | |
| 90 | 90 | if (is_bool($handle)) { |