From 0b20aff6ffb6bc84cf4cf09120c0f4971ffb2d2c Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 26 Nov 2020 21:08:49 -0600 Subject: [PATCH] SFTP: CS adjustments --- phpseclib/Net/SFTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index dbd23137..72eafcad 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2278,7 +2278,7 @@ class Net_SFTP extends Net_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; @@ -2336,7 +2336,7 @@ class Net_SFTP extends Net_SSH2 if ($local_file === false) { $content.= $temp; } elseif (is_callable($local_file)) { - $local_file($temp); + $local_file($temp); } else { fputs($fp, $temp); }