From 0a1d0c8646c82578eaf9ab99fc1134e3e150806a Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 2 Jan 2016 15:26:05 +1030 Subject: [PATCH] Clean up --- framework/core/src/Core/Command/StartDiscussionHandler.php | 1 - framework/core/src/Core/Repository/UserRepository.php | 2 +- framework/core/src/Forum/AuthenticationResponseFactory.php | 1 - framework/core/src/Http/Middleware/StartSession.php | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/framework/core/src/Core/Command/StartDiscussionHandler.php b/framework/core/src/Core/Command/StartDiscussionHandler.php index 0dad73fcd..e1bdd0cba 100644 --- a/framework/core/src/Core/Command/StartDiscussionHandler.php +++ b/framework/core/src/Core/Command/StartDiscussionHandler.php @@ -38,7 +38,6 @@ class StartDiscussionHandler * @param EventDispatcher $events * @param BusDispatcher $bus * @param DiscussionValidator $validator - * @internal param Forum $forum */ public function __construct(EventDispatcher $events, BusDispatcher $bus, DiscussionValidator $validator) { diff --git a/framework/core/src/Core/Repository/UserRepository.php b/framework/core/src/Core/Repository/UserRepository.php index a3464f791..afda68b52 100644 --- a/framework/core/src/Core/Repository/UserRepository.php +++ b/framework/core/src/Core/Repository/UserRepository.php @@ -77,7 +77,7 @@ class UserRepository { $query = User::where('username', 'like', $username); - return $this->scopeVisibleTo($query, $actor)->pluck('id'); + return $this->scopeVisibleTo($query, $actor)->value('id'); } /** diff --git a/framework/core/src/Forum/AuthenticationResponseFactory.php b/framework/core/src/Forum/AuthenticationResponseFactory.php index 60370c66e..cd60e8420 100644 --- a/framework/core/src/Forum/AuthenticationResponseFactory.php +++ b/framework/core/src/Forum/AuthenticationResponseFactory.php @@ -37,7 +37,6 @@ class AuthenticationResponseFactory */ public function __construct(SessionAuthenticator $authenticator, Rememberer $rememberer) { - $this->authenticator = $authenticator; $this->rememberer = $rememberer; } diff --git a/framework/core/src/Http/Middleware/StartSession.php b/framework/core/src/Http/Middleware/StartSession.php index c28d13c20..d835e9b63 100644 --- a/framework/core/src/Http/Middleware/StartSession.php +++ b/framework/core/src/Http/Middleware/StartSession.php @@ -10,7 +10,6 @@ namespace Flarum\Http\Middleware; -use Dflydev\FigCookies\Cookie; use Dflydev\FigCookies\FigResponseCookies; use Dflydev\FigCookies\SetCookie; use Illuminate\Support\Str;