mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 01:28:27 +00:00
more CS adjustments
This commit is contained in:
parent
cb3aff1332
commit
fa53d11807
@ -243,7 +243,6 @@ abstract class DH extends AsymmetricKey
|
|||||||
* $length is in bits
|
* $length is in bits
|
||||||
*
|
*
|
||||||
* @param int $length optional
|
* @param int $length optional
|
||||||
* @return DH\PrivateKey
|
|
||||||
*/
|
*/
|
||||||
public static function createKey(Parameters $params, int $length = 0): PrivateKey
|
public static function createKey(Parameters $params, int $length = 0): PrivateKey
|
||||||
{
|
{
|
||||||
|
@ -180,7 +180,6 @@ abstract class DSA extends AsymmetricKey
|
|||||||
* Returns the private key, from which the publickey can be extracted
|
* Returns the private key, from which the publickey can be extracted
|
||||||
*
|
*
|
||||||
* @param int[] ...$args
|
* @param int[] ...$args
|
||||||
* @return DSA\PrivateKey
|
|
||||||
*/
|
*/
|
||||||
public static function createKey(...$args): PrivateKey
|
public static function createKey(...$args): PrivateKey
|
||||||
{
|
{
|
||||||
|
@ -31,8 +31,8 @@ namespace phpseclib3\Math;
|
|||||||
|
|
||||||
use phpseclib3\Exception\BadConfigurationException;
|
use phpseclib3\Exception\BadConfigurationException;
|
||||||
use phpseclib3\Exception\InvalidArgumentException;
|
use phpseclib3\Exception\InvalidArgumentException;
|
||||||
|
use phpseclib3\Exception\UnexpectedValueException;
|
||||||
use phpseclib3\Math\BigInteger\Engines\Engine;
|
use phpseclib3\Math\BigInteger\Engines\Engine;
|
||||||
use UnexpectedValueException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pure-PHP arbitrary precision integer arithmetic library. Supports base-2, base-10, base-16, and base-256
|
* Pure-PHP arbitrary precision integer arithmetic library. Supports base-2, base-10, base-16, and base-256
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bootstrapping File for phpseclib
|
* Bootstrapping File for phpseclib
|
||||||
*
|
*
|
||||||
|
@ -813,8 +813,10 @@ class SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
|||||||
public function testCallableGetWithLength($sftp)
|
public function testCallableGetWithLength($sftp)
|
||||||
{
|
{
|
||||||
$sftp->put('test.txt', 'zzzzz');
|
$sftp->put('test.txt', 'zzzzz');
|
||||||
$sftp->get('test.txt', function ($data) {
|
$sftp->get('test.txt', function ($data): void {
|
||||||
}, 0, 1);
|
}, 0, 1);
|
||||||
$this->assertTrue(true);
|
$this->assertTrue(true);
|
||||||
|
|
||||||
|
return $sftp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1293,7 +1293,7 @@ BbNA6tFZAwLoX18R6yEmzHAQ+R2Eliiaz7mgQ+M2d0ec6qQJFoO7aJsX
|
|||||||
$this->assertIsArray($r);
|
$this->assertIsArray($r);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testWildcardCert()
|
public function testWildcardCert(): void
|
||||||
{
|
{
|
||||||
$cert = '-----BEGIN CERTIFICATE-----
|
$cert = '-----BEGIN CERTIFICATE-----
|
||||||
MIIKqDCCCZCgAwIBAgIQAZ3dCTUFVNcaZ4TM/m6DFTANBgkqhkiG9w0BAQsFADBY
|
MIIKqDCCCZCgAwIBAgIQAZ3dCTUFVNcaZ4TM/m6DFTANBgkqhkiG9w0BAQsFADBY
|
||||||
@ -1365,7 +1365,7 @@ dzXhMVAQYlpu27381/Ts2SuDx6v/cZ8lV8D5o/xTtCpWAnLxM2bxSyVnYbk=
|
|||||||
/**
|
/**
|
||||||
* @group github1943
|
* @group github1943
|
||||||
*/
|
*/
|
||||||
public function testWeirdCharsCert()
|
public function testWeirdCharsCert(): void
|
||||||
{
|
{
|
||||||
$cert = '-----BEGIN CERTIFICATE-----
|
$cert = '-----BEGIN CERTIFICATE-----
|
||||||
MIIDtTCCAp2gAwIBAgICECEwDQYJKoZIhvcNAQELBQAwYzELMAkGA1UEBhMCVVMx
|
MIIDtTCCAp2gAwIBAgICECEwDQYJKoZIhvcNAQELBQAwYzELMAkGA1UEBhMCVVMx
|
||||||
|
@ -26,7 +26,7 @@ class PrimeFieldTest extends PhpseclibTestCase
|
|||||||
/**
|
/**
|
||||||
* @group github1929
|
* @group github1929
|
||||||
*/
|
*/
|
||||||
public function testGarbageCollectedToBytes()
|
public function testGarbageCollectedToBytes(): void
|
||||||
{
|
{
|
||||||
$blob = base64_decode('BFgsTFQeqKr0toyURbtT43INMDS7FTHjz3yn3MR1/Yv/pb2b9ZCYNQ/Tafe5hQpEJ4TpZOKfikP/hWZvFL8QCPgqbIGqw/KTfA==');
|
$blob = base64_decode('BFgsTFQeqKr0toyURbtT43INMDS7FTHjz3yn3MR1/Yv/pb2b9ZCYNQ/Tafe5hQpEJ4TpZOKfikP/hWZvFL8QCPgqbIGqw/KTfA==');
|
||||||
$public = "\0" . substr($blob, 0, 49);
|
$public = "\0" . substr($blob, 0, 49);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user