mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-30 02:28:31 +00:00
chore(cs): fix indentation changes not related to the feature
This commit is contained in:
parent
a49f431bc1
commit
b3931bd212
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user