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',