diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index fd828d2c..8ae43fa0 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2217,7 +2217,7 @@ class SFTP extends SSH2 $res_offset = $stat['size']; } else { $res_offset = 0; - if ($local_file !== false && !is_callable($local_file) ) { + if ($local_file !== false && !is_callable($local_file)) { $fp = fopen($local_file, 'wb'); if (!$fp) { return false; @@ -2275,7 +2275,7 @@ class SFTP extends SSH2 if ($local_file === false) { $content.= $temp; } elseif (is_callable($local_file)) { - $local_file($temp); + $local_file($temp); } else { fputs($fp, $temp); }