mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
code style
This commit is contained in:
parent
208057e445
commit
dae8dea06c
8 changed files with 15 additions and 15 deletions
|
|
@ -349,7 +349,7 @@ class Share extends AbstractShare {
|
|||
$connection->write('get ' . $source . ' ' . $this->system->getFD(5));
|
||||
$connection->write('exit');
|
||||
$fh = $connection->getFileOutputStream();
|
||||
$fh = CallbackWrapper::wrap($fh, function() use ($connection) {
|
||||
$fh = CallbackWrapper::wrap($fh, function () use ($connection) {
|
||||
$connection->write('');
|
||||
});
|
||||
if (!is_resource($fh)) {
|
||||
|
|
@ -379,7 +379,7 @@ class Share extends AbstractShare {
|
|||
|
||||
// use a close callback to ensure the upload is finished before continuing
|
||||
// this also serves as a way to keep the connection in scope
|
||||
$stream = CallbackWrapper::wrap($fh, function() use ($connection) {
|
||||
$stream = CallbackWrapper::wrap($fh, function () use ($connection) {
|
||||
$connection->write('');
|
||||
}, null, function () use ($connection) {
|
||||
$connection->close(false); // dont terminate, give the upload some time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue