From ea44fe0f16faf1df2456e92b88323a52d28ddc58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 20 Jun 2023 01:11:41 +0200 Subject: [PATCH] Fixed indention of structual element --- src/Form/Type/Helper/StructuralEntityChoiceHelper.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Form/Type/Helper/StructuralEntityChoiceHelper.php b/src/Form/Type/Helper/StructuralEntityChoiceHelper.php index e1f9d4b7..3f7cb7a3 100644 --- a/src/Form/Type/Helper/StructuralEntityChoiceHelper.php +++ b/src/Form/Type/Helper/StructuralEntityChoiceHelper.php @@ -69,11 +69,9 @@ class StructuralEntityChoiceHelper $level -= $parent->getLevel() - 1; } - $tmp += [ - 'data-level' => $level, - 'data-parent' => $choice->getParent() instanceof AbstractStructuralDBElement ? $choice->getParent()->getFullPath() : null, - 'data-path' => $choice->getFullPath('->'), - ]; + $tmp['data-level'] = $level; + $tmp['data-parent'] = $choice->getParent() instanceof AbstractStructuralDBElement ? $choice->getParent()->getFullPath() : null; + $tmp['data-path'] = $choice->getFullPath('->'); } if ($choice instanceof HasMasterAttachmentInterface) {