chore(cs): fix indentation changes not related to the feature

This commit is contained in:
Sam Mousa 2024-08-16 10:08:11 +02:00
parent a49f431bc1
commit b3931bd212
No known key found for this signature in database
GPG Key ID: A18520F9B4301C9D

View File

@ -717,7 +717,7 @@ class SFTP extends SSH2
// assume current dir if $dir is empty // assume current dir if $dir is empty
if ($dir === '') { if ($dir === '') {
$dir = './'; $dir = './';
// suffix a slash if needed // suffix a slash if needed
} elseif ($dir[-1] != '/') { } elseif ($dir[-1] != '/') {
$dir .= '/'; $dir .= '/';
} }
@ -3024,9 +3024,7 @@ class SFTP extends SSH2
throw new RuntimeException('Packet is too small'); throw new RuntimeException('Packet is too small');
} }
extract(unpack('Nlength', Strings::shift($this->packet_buffer, 4))); extract(unpack('Nlength', Strings::shift($this->packet_buffer, 4)));
/** /** @var integer $length */
* @var integer $length
*/
$tempLength = $length; $tempLength = $length;
$tempLength -= strlen($this->packet_buffer); $tempLength -= strlen($this->packet_buffer);