mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-23 23:57:41 +01:00
Fixed code style.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user