Skip to content

Commit

Permalink
more CS adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Sep 25, 2023
1 parent cb3aff1 commit d437385
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion phpseclib/Crypt/DH.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ public static function createParameters(...$args): Parameters
* $length is in bits
*
* @param int $length optional
* @return DH\PrivateKey
*/
public static function createKey(Parameters $params, int $length = 0): PrivateKey
{
Expand Down
1 change: 0 additions & 1 deletion phpseclib/Crypt/DSA.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ public static function createParameters(int $L = 2048, int $N = 224)
* Returns the private key, from which the publickey can be extracted
*
* @param int[] ...$args
* @return DSA\PrivateKey
*/
public static function createKey(...$args): PrivateKey
{
Expand Down
2 changes: 1 addition & 1 deletion phpseclib/Math/BigInteger.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

use phpseclib3\Exception\BadConfigurationException;
use phpseclib3\Exception\InvalidArgumentException;
use phpseclib3\Exception\UnexpectedValueException;
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
Expand Down
2 changes: 2 additions & 0 deletions phpseclib/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Bootstrapping File for phpseclib
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/Net/SFTPUserStoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -816,5 +816,7 @@ public function testCallableGetWithLength($sftp)
$sftp->get('test.txt', function ($data) {
}, 0, 1);
$this->assertTrue(true);

return $sftp;
}
}
4 changes: 2 additions & 2 deletions tests/Unit/File/X509/X509Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ public function testMalformedExt(): void
$this->assertIsArray($r);
}

public function testWildcardCert()
public function testWildcardCert(): void
{
$cert = '-----BEGIN CERTIFICATE-----
MIIKqDCCCZCgAwIBAgIQAZ3dCTUFVNcaZ4TM/m6DFTANBgkqhkiG9w0BAQsFADBY
Expand Down Expand Up @@ -1365,7 +1365,7 @@ public function testWildcardCert()
/**
* @group github1943
*/
public function testWeirdCharsCert()
public function testWeirdCharsCert(): void
{
$cert = '-----BEGIN CERTIFICATE-----
MIIDtTCCAp2gAwIBAgICECEwDQYJKoZIhvcNAQELBQAwYzELMAkGA1UEBhMCVVMx
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Math/PrimeFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testPrimeFieldWithCompositeNumbers(): void
/**
* @group github1929
*/
public function testGarbageCollectedToBytes()
public function testGarbageCollectedToBytes(): void
{
$blob = base64_decode('BFgsTFQeqKr0toyURbtT43INMDS7FTHjz3yn3MR1/Yv/pb2b9ZCYNQ/Tafe5hQpEJ4TpZOKfikP/hWZvFL8QCPgqbIGqw/KTfA==');
$public = "\0" . substr($blob, 0, 49);
Expand Down

0 comments on commit d437385

Please sign in to comment.