mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-03-16 15:32:21 +00:00
CS adjustments
This commit is contained in:
parent
501c96c48c
commit
ff26e22563
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -539,7 +539,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function testReadingOfClosedChannel()
|
||||
public function testReadingOfClosedChannel(): void
|
||||
{
|
||||
$ssh = $this->getSSH2Login();
|
||||
$this->assertSame(0, $ssh->getOpenChannelCount());
|
||||
|
@ -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));
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\Tests\Unit\Math;
|
||||
|
||||
use phpseclib3\Math\BigInteger;
|
||||
|
Loading…
x
Reference in New Issue
Block a user