CS adjustments

This commit is contained in:
terrafrost 2023-06-04 11:12:11 -05:00
parent 501c96c48c
commit ff26e22563
5 changed files with 6 additions and 9 deletions

View File

@ -309,8 +309,6 @@ class SFTP extends SSH2
* Default Constructor.
*
* Connects to an SFTP server
*
* @param mixed $host
*/
public function __construct($host, int $port = 22, int $timeout = 10)
{

View File

@ -50,7 +50,6 @@ namespace phpseclib3\Net;
use phpseclib3\Common\Functions\Strings;
use phpseclib3\Crypt\Blowfish;
use phpseclib3\Crypt\ChaCha20;
use phpseclib3\Crypt\Common\AsymmetricKey;
use phpseclib3\Crypt\Common\PrivateKey;
use phpseclib3\Crypt\Common\PublicKey;
use phpseclib3\Crypt\Common\SymmetricKey;
@ -4530,7 +4529,7 @@ class SSH2
/**
* Force multiple channels (even if phpseclib has decided to disable them)
*/
public function forceMultipleChannels()
public function forceMultipleChannels(): void
{
$this->errorOnMultipleChannels = false;
}

View File

@ -539,7 +539,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase
);
}
public function testReadingOfClosedChannel()
public function testReadingOfClosedChannel(): void
{
$ssh = $this->getSSH2Login();
$this->assertSame(0, $ssh->getOpenChannelCount());

View File

@ -259,12 +259,10 @@ zUlir0ACPypC1Q==
public function testSettingOnePadding(): void
{
$pub = <<<HERE
-----BEGIN PUBLIC KEY-----
$pub = '-----BEGIN PUBLIC KEY-----
MF0wDQYJKoZIhvcNAQEBBQADTAAwSQJCAmdYuOvii3I6ya3q/zSeZFoJprgF9fIq
k12yS6pCS3c+1wZ9cYFVtgfpSL4XpylLe9EnRT2GRVYCqUkR4AUeTuvnAgMBAAE=
-----END PUBLIC KEY-----
HERE;
-----END PUBLIC KEY-----';
$rsa = PublicKeyLoader::load($pub);
$this->assertTrue((bool) ($rsa->getPadding() & RSA::SIGNATURE_PSS));

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace phpseclib3\Tests\Unit\Math;
use phpseclib3\Math\BigInteger;