From d1666cac503312e859076a872dd8e716ece273c7 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 2 Jun 2021 22:59:11 -0500 Subject: [PATCH] SFTP: CS adjustments --- phpseclib/Net/SFTP.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index e78c033d..046d61da 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -272,7 +272,7 @@ class SFTP extends SSH2 * @var array * @access private */ - private $requestBuffer = array(); + private $requestBuffer = []; /** * Preserve timestamps on file downloads / uploads @@ -3012,10 +3012,10 @@ class SFTP extends SSH2 } if (isset($request_id) && $this->use_request_id && $packet_id != $request_id) { - $this->requestBuffer[$packet_id] = array( + $this->requestBuffer[$packet_id] = [ 'packet_type' => $this->packet_type, 'packet' => $packet - ); + ]; return $this->get_sftp_packet($request_id); }