@@ -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 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | public function sendTo($localFile, $remoteFile) |
69 | 69 | { |
70 | 70 | $localData = file_get_contents($localFile); |
71 | - if (!file_put_contents("ssh2.sftp://" . intval($this->sftp) . $remoteFile, $localData)) { |
|
71 | + if (!file_put_contents("ssh2.sftp://".intval($this->sftp).$remoteFile, $localData)) { |
|
72 | 72 | throw new \Exception('File could not be uploaded to the SFTP server.'); |
73 | 73 | } |
74 | 74 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function getRemoteFilesList($dir) |
80 | 80 | { |
81 | - $handle = opendir("ssh2.sftp://" . intval($this->sftp) . $dir); |
|
81 | + $handle = opendir("ssh2.sftp://".intval($this->sftp).$dir); |
|
82 | 82 | $files = array(); |
83 | 83 | |
84 | 84 | if (is_bool($handle)) { |