Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Sep 26, 2024
1 parent 7e2c00e commit 4f2c439
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/ForumAttributes.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of fof/best-answer.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace FoF\BestAnswer;

use Flarum\Api\Serializer\ForumSerializer;
Expand All @@ -16,7 +25,7 @@ public function __construct(SettingsRepositoryInterface $settings)
{
$this->settings = $settings;
}

public function __invoke(ForumSerializer $serializer, $model, array $attributes): array
{
if ($value = $this->getBooleanSetting('fof-best-answer.search.solution_search')) {
Expand All @@ -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;
}

Expand Down

0 comments on commit 4f2c439

Please sign in to comment.