From ea48b17e3f8347c9c4922eabbb78e04e94ebd586 Mon Sep 17 00:00:00 2001 From: Ian Morland Date: Sat, 20 Jun 2020 10:21:06 +0000 Subject: [PATCH] Apply fixes from StyleCI --- extend.php | 6 +++--- src/Listeners/AddDefaultGroup.php | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/extend.php b/extend.php index acd891c..0afc12f 100644 --- a/extend.php +++ b/extend.php @@ -5,7 +5,7 @@ * * Copyright (c) 2018 FriendsOfFlarum. * - * For the full copyright and license information, please view the LICENSE.md + * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ @@ -19,8 +19,8 @@ (new Extend\Frontend('admin')) ->js(__DIR__.'/js/dist/admin.js') ->css(__DIR__.'/resources/less/admin.less'), - new Extend\Locales(__DIR__ . '/resources/locale'), + new Extend\Locales(__DIR__.'/resources/locale'), function (Dispatcher $events) { $events->listen(Activated::class, Listeners\AddDefaultGroup::class); - } + }, ]; diff --git a/src/Listeners/AddDefaultGroup.php b/src/Listeners/AddDefaultGroup.php index 80ba0d3..8bb3de8 100644 --- a/src/Listeners/AddDefaultGroup.php +++ b/src/Listeners/AddDefaultGroup.php @@ -5,7 +5,7 @@ * * Copyright (c) 2018 FriendsOfFlarum. * - * For the full copyright and license information, please view the LICENSE.md + * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ @@ -30,7 +30,8 @@ public function __construct(SettingsRepositoryInterface $settings) $this->settings = $settings; } - public function handle(Activated $event) { + public function handle(Activated $event) + { $defaultGroup = $this->settings->get('fof-default-group.group'); if ($defaultGroup != null && (int) $defaultGroup !== Group::MEMBER_ID) {