From a0d06e5e81175c85ebe54abf1fc33c3b80b8048c Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 19 Feb 2022 17:19:08 -0600 Subject: [PATCH] CS adjustments --- phpseclib/Crypt/Common/Formats/Keys/PuTTY.php | 4 ++-- phpseclib/Net/SFTP.php | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php b/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php index c4d59daf..086c0cb2 100644 --- a/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php +++ b/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php @@ -119,7 +119,7 @@ abstract class PuTTY $flavour = SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13; break; default: - throw new UnsupportedAlgorithmException('Only Argon2i and Argon2id are supported'); + throw new UnsupportedAlgorithmException('Only Argon2i and Argon2id are supported'); } $length = 80; // keylen + ivlen + mac_keylen @@ -181,7 +181,7 @@ abstract class PuTTY if ($components === false) { throw new \UnexpectedValueException('Unable to decode public key'); } - $components+= $values; + $components += $values; $components['comment'] = str_replace(['\\\\', '\"'], ['\\', '"'], $values['comment']); return $components; diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index b70073bd..b7053c65 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -381,13 +381,13 @@ class SFTP extends SSH2 20 => 'NET_SFTP_SYMLINK', 21 => 'NET_SFTP_LINK', - 101=> 'NET_SFTP_STATUS', - 102=> 'NET_SFTP_HANDLE', - 103=> 'NET_SFTP_DATA', - 104=> 'NET_SFTP_NAME', - 105=> 'NET_SFTP_ATTRS', + 101 => 'NET_SFTP_STATUS', + 102 => 'NET_SFTP_HANDLE', + 103 => 'NET_SFTP_DATA', + 104 => 'NET_SFTP_NAME', + 105 => 'NET_SFTP_ATTRS', - 200=> 'NET_SFTP_EXTENDED' + 200 => 'NET_SFTP_EXTENDED' ]; $this->status_codes = [ 0 => 'NET_SFTP_STATUS_OK',