PHP CS Fixer updated (3.63.1 -> v3.64.0)

This commit is contained in:
2024-09-04 14:38:56 +02:00
parent 063bc2857f
commit 313fb9ffdf
302 changed files with 391 additions and 391 deletions

View File

@@ -23,7 +23,7 @@ final class AsyncUploadVoter extends Voter
public function __construct(
private readonly Security $security,
private readonly StoredObjectRepository $storedObjectRepository
private readonly StoredObjectRepository $storedObjectRepository,
) {}
protected function supports($attribute, $subject): bool
@@ -43,7 +43,7 @@ final class AsyncUploadVoter extends Voter
return match ($subject->method) {
'GET', 'HEAD' => $this->security->isGranted(StoredObjectRoleEnum::SEE->value, $storedObject),
'PUT' => $this->security->isGranted(StoredObjectRoleEnum::EDIT->value, $storedObject),
'POST' => $this->security->isGranted('ROLE_USER') || $this->security->isGranted('ROLE_ADMIN')
'POST' => $this->security->isGranted('ROLE_USER') || $this->security->isGranted('ROLE_ADMIN'),
};
}
}