Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 26, 2023
1 parent 17e7d5c commit 8722c95
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Form/Type/RolesMatrixType.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function configureOptions(OptionsResolver $resolver): void
return $value;
},

'data_class' => null,
'data_class' => null,
]
);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Form/Type/SecurityRolesType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand All @@ -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 [];
}
Expand Down Expand Up @@ -129,7 +129,7 @@ public function configureOptions(OptionsResolver $resolver): void
return $value;
},

'data_class' => null,
'data_class' => null,
]
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/App/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'login_path' => '/admin/login',
'check_path' => '/admin/login_check',
],
'logout' => [
'logout' => [
'path' => '/admin/logout',
'target' => '/admin/login',
],
Expand Down
2 changes: 1 addition & 1 deletion tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testDefault(): void
'translation' => 'NucleosUserAdminBundle',
],
],
'avatar' => [
'avatar' => [
'resolver' => StaticAvatarResolver::class,
'default_avatar' => '/bundles/nucleosuseradmin/default_avatar.png',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -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 = [
Expand Down

0 comments on commit 8722c95

Please sign in to comment.