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