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