Fixed code style.

This commit is contained in:
Jan Böhmer 2020-08-21 21:36:22 +02:00
parent 2853e471c4
commit d0b1024d80
212 changed files with 495 additions and 1005 deletions

View file

@ -103,7 +103,7 @@ class LogDataTable implements DataTableTypeInterface
$optionsResolver->setAllowedTypes('mode', 'string');
$optionsResolver->setNormalizer('filter_elements', function (Options $options, $value) {
if (! is_array($value)) {
if (!is_array($value)) {
return [$value];
}
@ -254,8 +254,8 @@ class LogDataTable implements DataTableTypeInterface
},
'disabled' => function ($value, AbstractLogEntry $context) {
return
! $this->security->isGranted('@tools.timetravel')
|| ! $this->security->isGranted('show_history', $context->getTargetClass());
!$this->security->isGranted('@tools.timetravel')
|| !$this->security->isGranted('show_history', $context->getTargetClass());
},
]);
@ -293,7 +293,7 @@ class LogDataTable implements DataTableTypeInterface
]);
}
if (! empty($options['filter_elements'])) {
if (!empty($options['filter_elements'])) {
foreach ($options['filter_elements'] as $element) {
/** @var AbstractDBElement $element */