mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -47,7 +47,7 @@ final readonly class UserExportController
|
||||
$csv = Writer::createFromPath('php://temp', 'r+');
|
||||
$csv->insertOne(
|
||||
array_map(
|
||||
fn (string $e) => $this->translator->trans('admin.users.export.' . $e),
|
||||
fn (string $e) => $this->translator->trans('admin.users.export.'.$e),
|
||||
[
|
||||
'id',
|
||||
// 'username',
|
||||
@@ -57,7 +57,7 @@ final readonly class UserExportController
|
||||
'civility_abbreviation',
|
||||
'civility_name',
|
||||
'label',
|
||||
'mainCenter_id' ,
|
||||
'mainCenter_id',
|
||||
'mainCenter_name',
|
||||
'mainScope_id',
|
||||
'mainScope_name',
|
||||
@@ -67,7 +67,7 @@ final readonly class UserExportController
|
||||
'currentLocation_name',
|
||||
'mainLocation_id',
|
||||
'mainLocation_name',
|
||||
'absenceStart'
|
||||
'absenceStart',
|
||||
]
|
||||
)
|
||||
);
|
||||
@@ -94,6 +94,7 @@ final readonly class UserExportController
|
||||
* @throws \League\Csv\CannotInsertRecord
|
||||
* @throws \League\Csv\Exception
|
||||
* @throws \League\Csv\UnavailableStream
|
||||
*
|
||||
* @Route("/{_locale}/admin/main/users/export/permissions.{_format}", requirements={"_format": "csv"}, name="chill_main_users_export_permissions")
|
||||
*/
|
||||
public function userPermissionsList(string $_format = 'csv'): StreamedResponse
|
||||
@@ -107,7 +108,7 @@ final readonly class UserExportController
|
||||
$csv = Writer::createFromPath('php://temp', 'r+');
|
||||
$csv->insertOne(
|
||||
array_map(
|
||||
fn (string $e) => $this->translator->trans('admin.users.export.' . $e),
|
||||
fn (string $e) => $this->translator->trans('admin.users.export.'.$e),
|
||||
[
|
||||
'id',
|
||||
'username',
|
||||
|
Reference in New Issue
Block a user