mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 18:59:51 +00:00
CS adjustments
This commit is contained in:
parent
b686baf782
commit
7e21068964
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpseclib3\Exception;
|
namespace phpseclib3\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1920,7 +1920,6 @@ class SSH2
|
|||||||
* @link https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/ssh2-aesctr-openssh.html
|
* @link https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/ssh2-aesctr-openssh.html
|
||||||
* @link https://bugzilla.mindrot.org/show_bug.cgi?id=1291
|
* @link https://bugzilla.mindrot.org/show_bug.cgi?id=1291
|
||||||
* @param string $algorithm Name of the encryption algorithm
|
* @param string $algorithm Name of the encryption algorithm
|
||||||
* @return bool
|
|
||||||
*/
|
*/
|
||||||
private static function bad_algorithm_candidate($algorithm): bool
|
private static function bad_algorithm_candidate($algorithm): bool
|
||||||
{
|
{
|
||||||
@ -4040,7 +4039,7 @@ class SSH2
|
|||||||
/**
|
/**
|
||||||
* Sends a keep-alive message, if keep-alive is enabled and interval is met
|
* Sends a keep-alive message, if keep-alive is enabled and interval is met
|
||||||
*/
|
*/
|
||||||
private function send_keep_alive()
|
private function send_keep_alive(): void
|
||||||
{
|
{
|
||||||
$elapsed = microtime(true) - $this->keep_alive_sent;
|
$elapsed = microtime(true) - $this->keep_alive_sent;
|
||||||
if ($this->keepAlive > 0 && $elapsed >= $this->keepAlive) {
|
if ($this->keepAlive > 0 && $elapsed >= $this->keepAlive) {
|
||||||
|
@ -557,7 +557,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
$this->assertSame(0, $ssh->getOpenChannelCount());
|
$this->assertSame(0, $ssh->getOpenChannelCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testPing()
|
public function testPing(): void
|
||||||
{
|
{
|
||||||
$ssh = $this->getSSH2();
|
$ssh = $this->getSSH2();
|
||||||
// assert on unauthenticated ssh2
|
// assert on unauthenticated ssh2
|
||||||
@ -597,7 +597,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
|||||||
* @param string $type
|
* @param string $type
|
||||||
* @param string $algorithm
|
* @param string $algorithm
|
||||||
*/
|
*/
|
||||||
public function testCryptoAlgorithms($type, $algorithm)
|
public function testCryptoAlgorithms($type, $algorithm): void
|
||||||
{
|
{
|
||||||
$ssh = $this->getSSH2();
|
$ssh = $this->getSSH2();
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user