From 4f2c439e429119034ba020979229a4a642c1be32 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 26 Sep 2024 10:26:38 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/ForumAttributes.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ForumAttributes.php b/src/ForumAttributes.php index 8d71be4..810cd18 100644 --- a/src/ForumAttributes.php +++ b/src/ForumAttributes.php @@ -1,5 +1,14 @@ settings = $settings; } - + public function __invoke(ForumSerializer $serializer, $model, array $attributes): array { if ($value = $this->getBooleanSetting('fof-best-answer.search.solution_search')) { @@ -28,7 +37,7 @@ public function __invoke(ForumSerializer $serializer, $model, array $attributes) $attributes['useAlternativeBestAnswerUi'] = $this->getBooleanSetting('fof-best-answer.use_alternative_ui'); $attributes['showBestAnswerFilterUi'] = $this->getBooleanSetting('fof-best-answer.show_filter_dropdown'); $attributes['bestAnswerDiscussionSidebarJumpButton'] = $this->getBooleanSetting('fof-best-answer.discussion_sidebar_jump_button'); - + return $attributes; }