mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +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;
|
||||
|
||||
class ParseRequestException extends \UnexpectedValueException
|
||||
{
|
||||
}
|
||||
class ParseRequestException extends \UnexpectedValueException {}
|
||||
|
@ -27,8 +27,7 @@ final readonly class DavOnUrlTokenExtractor implements TokenExtractorInterface
|
||||
{
|
||||
public function __construct(
|
||||
private LoggerInterface $logger,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function extract(Request $request): false|string
|
||||
{
|
||||
|
@ -24,8 +24,7 @@ final readonly class JWTDavTokenProvider implements JWTDavTokenProviderInterface
|
||||
public function __construct(
|
||||
private JWTTokenManagerInterface $JWTTokenManager,
|
||||
private Security $security,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function createToken(StoredObject $storedObject, StoredObjectRoleEnum $roleEnum): string
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ class JWTOnDavUrlAuthenticator extends JWTTokenAuthenticator
|
||||
TokenExtractorInterface $tokenExtractor,
|
||||
private readonly DavOnUrlTokenExtractor $davOnUrlTokenExtractor,
|
||||
TokenStorageInterface $preAuthenticationTokenStorage,
|
||||
TranslatorInterface $translator = null,
|
||||
?TranslatorInterface $translator = null,
|
||||
) {
|
||||
parent::__construct($jwtManager, $dispatcher, $tokenExtractor, $preAuthenticationTokenStorage, $translator);
|
||||
}
|
||||
|
@ -128,8 +128,7 @@ final readonly class WopiEditTwigExtensionRuntime implements RuntimeExtensionInt
|
||||
private NormalizerInterface $normalizer,
|
||||
private JWTDavTokenProviderInterface $davTokenProvider,
|
||||
private UrlGeneratorInterface $urlGenerator,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* return true if the document is editable.
|
||||
|
@ -399,9 +399,7 @@ class MockedStoredObjectManager implements StoredObjectManagerInterface
|
||||
return 'abcde';
|
||||
}
|
||||
|
||||
public function write(StoredObject $document, string $clearContent): void
|
||||
{
|
||||
}
|
||||
public function write(StoredObject $document, string $clearContent): void {}
|
||||
|
||||
public function etag(StoredObject $document): string
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ class StoredObjectVoterTest extends TestCase
|
||||
/**
|
||||
* @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();
|
||||
|
||||
@ -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);
|
||||
|
||||
|
@ -113,7 +113,7 @@ class CSPerson
|
||||
'ASS',
|
||||
'RSA',
|
||||
'AAH',
|
||||
// 'autre',
|
||||
// 'autre',
|
||||
];
|
||||
|
||||
/**
|
||||
@ -140,7 +140,7 @@ class CSPerson
|
||||
'referent_RSA',
|
||||
'mission_locale',
|
||||
'rqth',
|
||||
// 'autre',
|
||||
// 'autre',
|
||||
];
|
||||
|
||||
/**
|
||||
@ -226,7 +226,7 @@ class CSPerson
|
||||
'scooter',
|
||||
'velo',
|
||||
'voiture',
|
||||
// 'autre',
|
||||
// 'autre',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -523,12 +523,10 @@ class Immersion implements \Stringable
|
||||
|
||||
/**
|
||||
* Get duration.
|
||||
*
|
||||
* @return \DateInterval
|
||||
*/
|
||||
public function getDuration()
|
||||
{
|
||||
return new \DateInterval($this->duration);
|
||||
return $this->duration;
|
||||
}
|
||||
|
||||
public function getDateEndComputed()
|
||||
|
@ -88,7 +88,7 @@ class PickRomeAppellationType extends AbstractType
|
||||
->setDefault('class', Appellation::class)
|
||||
->setDefault('choice_label', fn (Appellation $a) => $a->getLibelle())
|
||||
->setDefault('placeholder', 'Choisir une appellation')
|
||||
// ->setDefault('attr', ['class' => 'select2 '])
|
||||
->setDefault('attr', ['class' => 'select2 '])
|
||||
->setDefault('choice_loader', fn (Options $o) => new RomeAppellationChoiceLoader(
|
||||
$this->em,
|
||||
$this->apiPartenaire,
|
||||
|
Loading…
x
Reference in New Issue
Block a user