Apply new CS rules on the webdav feature

This commit is contained in:
2024-01-15 20:38:03 +01:00
parent 813a80d6f9
commit a0328b9d68
14 changed files with 104 additions and 108 deletions

View File

@@ -27,9 +27,10 @@ final readonly class DavOnUrlTokenExtractor implements TokenExtractorInterface
{
public function __construct(
private LoggerInterface $logger,
) {}
) {
}
public function extract(Request $request): string|false
public function extract(Request $request): false|string
{
$uri = $request->getRequestUri();
@@ -41,13 +42,13 @@ final readonly class DavOnUrlTokenExtractor implements TokenExtractorInterface
);
if (2 > count($segments)) {
$this->logger->info("not enough segment for parsing URL");
$this->logger->info('not enough segment for parsing URL');
return false;
}
if ('dav' !== $segments[0]) {
$this->logger->info("the first segment of the url must be DAV");
$this->logger->info('the first segment of the url must be DAV');
return false;
}