CS adjustments

This commit is contained in:
terrafrost 2024-05-29 09:37:34 -05:00
parent b686baf782
commit 7e21068964
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace phpseclib3\Exception;
/**

View File

@ -1920,7 +1920,6 @@ class SSH2
* @link https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/ssh2-aesctr-openssh.html
* @link https://bugzilla.mindrot.org/show_bug.cgi?id=1291
* @param string $algorithm Name of the encryption algorithm
* @return 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
*/
private function send_keep_alive()
private function send_keep_alive(): void
{
$elapsed = microtime(true) - $this->keep_alive_sent;
if ($this->keepAlive > 0 && $elapsed >= $this->keepAlive) {

View File

@ -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 {