Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored and StyleCIBot committed Jun 20, 2020
1 parent 29bb46d commit ea48b17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand All @@ -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);
}
},
];
5 changes: 3 additions & 2 deletions src/Listeners/AddDefaultGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand All @@ -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) {
Expand Down

0 comments on commit ea48b17

Please sign in to comment.