Completed
Push — develop ( 7a48ad...eb4221 )
by Novikov
01:22
created
SFTP/SFTP.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.