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 Nov 20, 2023
1 parent f6dcc55 commit 2d1c8dc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Flarum\Api\Serializer\ForumSerializer;
use Flarum\Extend;
use Flarum\Frontend\Document;
use Flarum\Settings\Event\Saving;
use Flarum\User\Event\LoggedOut;
use FoF\Extend\Events\OAuthLoginSuccessful;

Expand Down
2 changes: 0 additions & 2 deletions src/Listeners/ClearOAuthCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

namespace FoF\OAuth\Listeners;

use Flarum\Extension\Event\Disabled;
use Flarum\Extension\Event\Disabling;
use Flarum\Extension\Event\Enabled;
use Flarum\Extension\Event\Enabling;
use Flarum\Settings\Event\Saving;
use Illuminate\Contracts\Cache\Store as Cache;
Expand Down
6 changes: 1 addition & 5 deletions src/OAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class OAuthServiceProvider extends AbstractServiceProvider
{
public function register()
{


$this->container->tag([
Providers\Discord::class,
Providers\Facebook::class,
Expand All @@ -40,15 +38,13 @@ public function register()

$collection->addRoute('GET', new OAuth2RoutePattern(), 'fof-oauth', $factory->toController(Controllers\AuthController::class));
});


}

public function boot()
{
/** @var Cache $cache */
$cache = $this->container->make(Cache::class);

$this->container->singleton('fof-oauth.providers.forum', function () use ($cache) {
$cacheKey = 'fof-oauth.providers.forum';

Expand Down

0 comments on commit 2d1c8dc

Please sign in to comment.