From 7e210689640a51bbf5e4aec72e32d4de18b7f485 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 29 May 2024 09:37:34 -0500 Subject: [PATCH] CS adjustments --- phpseclib/Exception/InvalidPacketLengthException.php | 2 ++ phpseclib/Net/SSH2.php | 3 +-- tests/Functional/Net/SSH2Test.php | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/phpseclib/Exception/InvalidPacketLengthException.php b/phpseclib/Exception/InvalidPacketLengthException.php index b96ead1e..ce4b93f1 100644 --- a/phpseclib/Exception/InvalidPacketLengthException.php +++ b/phpseclib/Exception/InvalidPacketLengthException.php @@ -1,5 +1,7 @@ keep_alive_sent; if ($this->keepAlive > 0 && $elapsed >= $this->keepAlive) { diff --git a/tests/Functional/Net/SSH2Test.php b/tests/Functional/Net/SSH2Test.php index c2e07745..08a10cc8 100644 --- a/tests/Functional/Net/SSH2Test.php +++ b/tests/Functional/Net/SSH2Test.php @@ -557,7 +557,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase $this->assertSame(0, $ssh->getOpenChannelCount()); } - public function testPing() + public function testPing(): void { $ssh = $this->getSSH2(); // assert on unauthenticated ssh2 @@ -597,7 +597,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase * @param string $type * @param string $algorithm */ - public function testCryptoAlgorithms($type, $algorithm) + public function testCryptoAlgorithms($type, $algorithm): void { $ssh = $this->getSSH2(); try {