mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
update cs after php-cs-fixer upgrade
This commit is contained in:
@@ -37,7 +37,7 @@ class ReportController extends AbstractController
|
||||
private readonly AuthorizationHelper $authorizationHelper,
|
||||
private readonly PaginatorFactory $paginator,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry
|
||||
private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry,
|
||||
) {}
|
||||
|
||||
/**
|
||||
|
@@ -60,7 +60,7 @@ class LoadCustomFieldsGroup extends AbstractFixture implements OrderedFixtureInt
|
||||
private function createReport(
|
||||
ObjectManager $manager,
|
||||
array $name,
|
||||
array $options = []
|
||||
array $options = [],
|
||||
) {
|
||||
echo $name['fr']." \n";
|
||||
|
||||
|
@@ -30,7 +30,7 @@ final class LoadReports extends AbstractFixture implements OrderedFixtureInterfa
|
||||
private readonly \Faker\Generator $faker;
|
||||
|
||||
public function __construct(
|
||||
private readonly EntityManagerInterface $entityManager
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
) {
|
||||
$this->faker = FakerFactory::create('fr_FR');
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ class ReportListProvider implements ExportElementsProviderInterface
|
||||
EntityManagerInterface $em,
|
||||
TranslatableStringHelper $translatableStringHelper,
|
||||
TranslatorInterface $translator,
|
||||
CustomFieldProvider $customFieldProvider
|
||||
CustomFieldProvider $customFieldProvider,
|
||||
) {
|
||||
$this->em = $em;
|
||||
$this->translatableStringHelper = $translatableStringHelper;
|
||||
|
@@ -31,7 +31,7 @@ final class ReportType extends AbstractType
|
||||
private readonly AuthorizationHelper $authorizationHelper,
|
||||
private readonly TokenStorageInterface $tokenStorage,
|
||||
private readonly TranslatableStringHelper $translatableStringHelper,
|
||||
private readonly ObjectManager $om
|
||||
private readonly ObjectManager $om,
|
||||
) {}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
|
@@ -411,7 +411,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
protected function getReportForm(
|
||||
Person $person,
|
||||
CustomFieldsGroup $group,
|
||||
\Symfony\Component\BrowserKit\AbstractBrowser $client
|
||||
\Symfony\Component\BrowserKit\AbstractBrowser $client,
|
||||
) {
|
||||
$url = sprintf(
|
||||
'fr/person/%d/report/cfgroup/%d/new',
|
||||
|
@@ -132,7 +132,7 @@ final class ReportVoterTest extends KernelTestCase
|
||||
Report $report,
|
||||
$action,
|
||||
$message,
|
||||
?User $user = null
|
||||
?User $user = null,
|
||||
) {
|
||||
$token = $this->prepareToken($user);
|
||||
$result = $this->voter->vote($token, $report, [$action]);
|
||||
|
Reference in New Issue
Block a user