diff --git a/src/Form/Type/RolesMatrixType.php b/src/Form/Type/RolesMatrixType.php index 530338c5..1f226159 100644 --- a/src/Form/Type/RolesMatrixType.php +++ b/src/Form/Type/RolesMatrixType.php @@ -73,7 +73,7 @@ public function configureOptions(OptionsResolver $resolver): void return $value; }, - 'data_class' => null, + 'data_class' => null, ] ); } diff --git a/src/Form/Type/SecurityRolesType.php b/src/Form/Type/SecurityRolesType.php index d02da7ed..ab412a95 100644 --- a/src/Form/Type/SecurityRolesType.php +++ b/src/Form/Type/SecurityRolesType.php @@ -87,9 +87,9 @@ public function configureOptions(OptionsResolver $resolver): void $resolver->setDefaults( [ // make expanded default value - 'expanded' => true, + 'expanded' => true, - 'choices' => function (Options $options, $parentChoices): array { + 'choices' => function (Options $options, $parentChoices): array { if (false === $parentChoices) { return []; } @@ -99,7 +99,7 @@ public function configureOptions(OptionsResolver $resolver): void return array_flip($roles); }, - 'read_only_choices' => function (Options $options): array { + 'read_only_choices' => function (Options $options): array { if (0 === \count($options['choices'])) { return []; } @@ -129,7 +129,7 @@ public function configureOptions(OptionsResolver $resolver): void return $value; }, - 'data_class' => null, + 'data_class' => null, ] ); } diff --git a/tests/App/config/config.php b/tests/App/config/config.php index bf2d1acd..9c025f86 100644 --- a/tests/App/config/config.php +++ b/tests/App/config/config.php @@ -54,7 +54,7 @@ 'login_path' => '/admin/login', 'check_path' => '/admin/login_check', ], - 'logout' => [ + 'logout' => [ 'path' => '/admin/logout', 'target' => '/admin/login', ], diff --git a/tests/DependencyInjection/ConfigurationTest.php b/tests/DependencyInjection/ConfigurationTest.php index 9527b360..735d47db 100644 --- a/tests/DependencyInjection/ConfigurationTest.php +++ b/tests/DependencyInjection/ConfigurationTest.php @@ -50,7 +50,7 @@ public function testDefault(): void 'translation' => 'NucleosUserAdminBundle', ], ], - 'avatar' => [ + 'avatar' => [ 'resolver' => StaticAvatarResolver::class, 'default_avatar' => '/bundles/nucleosuseradmin/default_avatar.png', ], diff --git a/tests/Security/Authorization/Voter/EditableRolesBuilderTest.php b/tests/Security/Authorization/Voter/EditableRolesBuilderTest.php index 0f02fb45..dc7455b4 100644 --- a/tests/Security/Authorization/Voter/EditableRolesBuilderTest.php +++ b/tests/Security/Authorization/Voter/EditableRolesBuilderTest.php @@ -39,7 +39,7 @@ public function testRolesFromHierarchy(): void $configuration = new SonataConfiguration('title', 'logo.png', []); $rolesHierarchy = [ - 'ROLE_ADMIN' => [ + 'ROLE_ADMIN' => [ 0 => 'ROLE_USER', ], 'ROLE_SUPER_ADMIN' => [ @@ -50,7 +50,7 @@ public function testRolesFromHierarchy(): void 4 => 'ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT', 5 => 'ROLE_SONATA_PAGE_ADMIN_BLOCK_EDIT', ], - 'SONATA' => [], + 'SONATA' => [], ]; $expected = [