mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
php cs fixes
This commit is contained in:
parent
cd6fd091dc
commit
854d72fa42
@ -11,6 +11,4 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Chill\DocStoreBundle\Dav\Exception;
|
namespace Chill\DocStoreBundle\Dav\Exception;
|
||||||
|
|
||||||
class ParseRequestException extends \UnexpectedValueException
|
class ParseRequestException extends \UnexpectedValueException {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -27,8 +27,7 @@ final readonly class DavOnUrlTokenExtractor implements TokenExtractorInterface
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private LoggerInterface $logger,
|
private LoggerInterface $logger,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function extract(Request $request): false|string
|
public function extract(Request $request): false|string
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,7 @@ final readonly class JWTDavTokenProvider implements JWTDavTokenProviderInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private JWTTokenManagerInterface $JWTTokenManager,
|
private JWTTokenManagerInterface $JWTTokenManager,
|
||||||
private Security $security,
|
private Security $security,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function createToken(StoredObject $storedObject, StoredObjectRoleEnum $roleEnum): string
|
public function createToken(StoredObject $storedObject, StoredObjectRoleEnum $roleEnum): string
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ class JWTOnDavUrlAuthenticator extends JWTTokenAuthenticator
|
|||||||
TokenExtractorInterface $tokenExtractor,
|
TokenExtractorInterface $tokenExtractor,
|
||||||
private readonly DavOnUrlTokenExtractor $davOnUrlTokenExtractor,
|
private readonly DavOnUrlTokenExtractor $davOnUrlTokenExtractor,
|
||||||
TokenStorageInterface $preAuthenticationTokenStorage,
|
TokenStorageInterface $preAuthenticationTokenStorage,
|
||||||
TranslatorInterface $translator = null,
|
?TranslatorInterface $translator = null,
|
||||||
) {
|
) {
|
||||||
parent::__construct($jwtManager, $dispatcher, $tokenExtractor, $preAuthenticationTokenStorage, $translator);
|
parent::__construct($jwtManager, $dispatcher, $tokenExtractor, $preAuthenticationTokenStorage, $translator);
|
||||||
}
|
}
|
||||||
|
@ -128,8 +128,7 @@ final readonly class WopiEditTwigExtensionRuntime implements RuntimeExtensionInt
|
|||||||
private NormalizerInterface $normalizer,
|
private NormalizerInterface $normalizer,
|
||||||
private JWTDavTokenProviderInterface $davTokenProvider,
|
private JWTDavTokenProviderInterface $davTokenProvider,
|
||||||
private UrlGeneratorInterface $urlGenerator,
|
private UrlGeneratorInterface $urlGenerator,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* return true if the document is editable.
|
* return true if the document is editable.
|
||||||
|
@ -399,9 +399,7 @@ class MockedStoredObjectManager implements StoredObjectManagerInterface
|
|||||||
return 'abcde';
|
return 'abcde';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function write(StoredObject $document, string $clearContent): void
|
public function write(StoredObject $document, string $clearContent): void {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function etag(StoredObject $document): string
|
public function etag(StoredObject $document): string
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,7 @@ class StoredObjectVoterTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @dataProvider provideDataVote
|
* @dataProvider provideDataVote
|
||||||
*/
|
*/
|
||||||
public function testVote(TokenInterface $token, null|object $subject, string $attribute, mixed $expected): void
|
public function testVote(TokenInterface $token, ?object $subject, string $attribute, mixed $expected): void
|
||||||
{
|
{
|
||||||
$voter = new StoredObjectVoter();
|
$voter = new StoredObjectVoter();
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ class StoredObjectVoterTest extends TestCase
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildToken(StoredObjectRoleEnum $storedObjectRoleEnum = null, StoredObject $storedObject = null): TokenInterface
|
private function buildToken(?StoredObjectRoleEnum $storedObjectRoleEnum = null, ?StoredObject $storedObject = null): TokenInterface
|
||||||
{
|
{
|
||||||
$token = $this->prophesize(TokenInterface::class);
|
$token = $this->prophesize(TokenInterface::class);
|
||||||
|
|
||||||
|
@ -523,12 +523,10 @@ class Immersion implements \Stringable
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get duration.
|
* Get duration.
|
||||||
*
|
|
||||||
* @return \DateInterval
|
|
||||||
*/
|
*/
|
||||||
public function getDuration()
|
public function getDuration()
|
||||||
{
|
{
|
||||||
return new \DateInterval($this->duration);
|
return $this->duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDateEndComputed()
|
public function getDateEndComputed()
|
||||||
|
@ -88,7 +88,7 @@ class PickRomeAppellationType extends AbstractType
|
|||||||
->setDefault('class', Appellation::class)
|
->setDefault('class', Appellation::class)
|
||||||
->setDefault('choice_label', fn (Appellation $a) => $a->getLibelle())
|
->setDefault('choice_label', fn (Appellation $a) => $a->getLibelle())
|
||||||
->setDefault('placeholder', 'Choisir une appellation')
|
->setDefault('placeholder', 'Choisir une appellation')
|
||||||
// ->setDefault('attr', ['class' => 'select2 '])
|
->setDefault('attr', ['class' => 'select2 '])
|
||||||
->setDefault('choice_loader', fn (Options $o) => new RomeAppellationChoiceLoader(
|
->setDefault('choice_loader', fn (Options $o) => new RomeAppellationChoiceLoader(
|
||||||
$this->em,
|
$this->em,
|
||||||
$this->apiPartenaire,
|
$this->apiPartenaire,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user