@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | public function copy($remoteFile, $localFile) |
| 59 | 59 | { |
| 60 | 60 | $sftp = "ssh2.sftp://$this->sftp"; |
| 61 | - $data = file_get_contents($sftp . $remoteFile); |
|
| 61 | + $data = file_get_contents($sftp.$remoteFile); |
|
| 62 | 62 | if (!$data) { |
| 63 | 63 | throw new \Exception('File can`t be loaded from server'); |
| 64 | 64 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | $sftp = "ssh2.sftp://$this->sftp"; |
| 76 | 76 | $data = file_get_contents($localFile); |
| 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 server'); |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function getFilesList($dir) |
| 87 | 87 | { |
| 88 | - $handle = opendir("ssh2.sftp://$this->sftp" . $dir); |
|
| 88 | + $handle = opendir("ssh2.sftp://$this->sftp".$dir); |
|
| 89 | 89 | $files = []; |
| 90 | 90 | |
| 91 | 91 | while (false !== ($entry = readdir($handle))) { |