Completed
Push — develop ( f78c15...62bc88 )
by Novikov
02:01
created
SFTP/SFTP.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function copy($remoteFile, $localFile)
55 55
     {
56 56
         $sftp = "ssh2.sftp://$this->sftp";
57
-        $data = file_get_contents($sftp . $remoteFile);
57
+        $data = file_get_contents($sftp.$remoteFile);
58 58
         if (!$data) {
59 59
             throw new \Exception('File can`t be loaded from server');
60 60
         }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $sftp = "ssh2.sftp://$this->sftp";
72 72
         $data = file_get_contents($localFile);
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 server');
75 75
         }
76 76
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function getFilesList($dir)
83 83
     {
84
-        $handle = opendir("ssh2.sftp://$this->sftp" . $dir);
84
+        $handle = opendir("ssh2.sftp://$this->sftp".$dir);
85 85
         $files = array();
86 86
 
87 87
         while (false != ($entry = readdir($handle))) {
Please login to merge, or discard this patch.