mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-27 13:29:32 +00:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
|
@ -98,7 +98,7 @@ class PermissionGroupType extends AbstractType
|
|||
$resolver->setDefault('inherit', false);
|
||||
|
||||
$resolver->setDefault('label', function (Options $options) {
|
||||
if (! empty($this->perm_structure['groups'][$options['group_name']]['label'])) {
|
||||
if (!empty($this->perm_structure['groups'][$options['group_name']]['label'])) {
|
||||
return $this->perm_structure['groups'][$options['group_name']]['label'];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class PermissionType extends AbstractType
|
|||
});
|
||||
|
||||
$resolver->setDefault('label', function (Options $options) {
|
||||
if (! empty($this->perm_structure['perms'][$options['perm_name']]['label'])) {
|
||||
if (!empty($this->perm_structure['perms'][$options['perm_name']]['label'])) {
|
||||
return $this->perm_structure['perms'][$options['perm_name']]['label'];
|
||||
}
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ class PermissionType extends AbstractType
|
|||
});
|
||||
|
||||
$resolver->setDefault('multi_checkbox', function (Options $options) {
|
||||
return ! $options['disabled'];
|
||||
return !$options['disabled'];
|
||||
});
|
||||
|
||||
$resolver->setDefaults([
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class PermissionsType extends AbstractType
|
|||
$resolver->setDefaults([
|
||||
'show_legend' => true,
|
||||
'constraints' => function (Options $options) {
|
||||
if (! $options['disabled']) {
|
||||
if (!$options['disabled']) {
|
||||
return [new NoLockout()];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue