@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | public function fetchFrom($remoteFile, $localFile) |
| 51 | 51 | { |
| 52 | 52 | $sftp = "ssh2.sftp://$this->sftp"; |
| 53 | - $data = file_get_contents($sftp . $remoteFile); |
|
| 53 | + $data = file_get_contents($sftp.$remoteFile); |
|
| 54 | 54 | if (!$data) { |
| 55 | 55 | throw new \Exception('File can`t be loaded from server'); |
| 56 | 56 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | { |
| 65 | 65 | $sftp = "ssh2.sftp://$this->sftp"; |
| 66 | 66 | $data = file_get_contents($localFile); |
| 67 | - if (!file_put_contents($sftp . $remoteFile, $data)) { |
|
| 67 | + if (!file_put_contents($sftp.$remoteFile, $data)) { |
|
| 68 | 68 | throw new \Exception('File could not be uploaded to server'); |
| 69 | 69 | } |
| 70 | 70 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function getRemoteFilesList($dir) |
| 76 | 76 | { |
| 77 | - $handle = opendir("ssh2.sftp://$this->sftp" . $dir); |
|
| 77 | + $handle = opendir("ssh2.sftp://$this->sftp".$dir); |
|
| 78 | 78 | $files = []; |
| 79 | 79 | |
| 80 | 80 | while (false !== ($entry = readdir($handle))) { |