mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 17:08:41 +08:00
Clean up
This commit is contained in:
parent
3767ee4bf6
commit
08dbc246dd
@ -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)
|
||||
{
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -37,7 +37,6 @@ class AuthenticationResponseFactory
|
||||
*/
|
||||
public function __construct(SessionAuthenticator $authenticator, Rememberer $rememberer)
|
||||
{
|
||||
|
||||
$this->authenticator = $authenticator;
|
||||
$this->rememberer = $rememberer;
|
||||
}
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
namespace Flarum\Http\Middleware;
|
||||
|
||||
use Dflydev\FigCookies\Cookie;
|
||||
use Dflydev\FigCookies\FigResponseCookies;
|
||||
use Dflydev\FigCookies\SetCookie;
|
||||
use Illuminate\Support\Str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user