code style

This commit is contained in:
Robin Appelman 2025-10-24 17:12:37 +02:00
commit dae8dea06c
8 changed files with 15 additions and 15 deletions

View file

@ -9,5 +9,4 @@ declare(strict_types=1);
namespace Icewind\SMB\Exception;
class InvalidTicket extends Exception {
}
}

View file

@ -12,4 +12,4 @@ class RevisionMismatchException extends Exception {
public function __construct(string $message = 'Protocol version mismatch', int $code = 0, ?Throwable $previous = null) {
parent::__construct($message, $code, $previous);
}
}
}

View file

@ -26,7 +26,7 @@ class KerberosTicket {
return $this->cacheName;
}
public function getName(): string{
public function getName(): string {
return $this->krb5->getName();
}
@ -82,4 +82,4 @@ class KerberosTicket {
}
return $ticket;
}
}
}

View file

@ -430,4 +430,4 @@ class NativeState {
}
}
}
}
}

View file

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