mirror of
https://github.com/flarum/core.git
synced 2025-05-06 15:35:38 +02:00
Clean up
This commit is contained in:
parent
3767ee4bf6
commit
08dbc246dd
@ -38,7 +38,6 @@ class StartDiscussionHandler
|
|||||||
* @param EventDispatcher $events
|
* @param EventDispatcher $events
|
||||||
* @param BusDispatcher $bus
|
* @param BusDispatcher $bus
|
||||||
* @param DiscussionValidator $validator
|
* @param DiscussionValidator $validator
|
||||||
* @internal param Forum $forum
|
|
||||||
*/
|
*/
|
||||||
public function __construct(EventDispatcher $events, BusDispatcher $bus, DiscussionValidator $validator)
|
public function __construct(EventDispatcher $events, BusDispatcher $bus, DiscussionValidator $validator)
|
||||||
{
|
{
|
||||||
|
@ -77,7 +77,7 @@ class UserRepository
|
|||||||
{
|
{
|
||||||
$query = User::where('username', 'like', $username);
|
$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)
|
public function __construct(SessionAuthenticator $authenticator, Rememberer $rememberer)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->authenticator = $authenticator;
|
$this->authenticator = $authenticator;
|
||||||
$this->rememberer = $rememberer;
|
$this->rememberer = $rememberer;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
namespace Flarum\Http\Middleware;
|
namespace Flarum\Http\Middleware;
|
||||||
|
|
||||||
use Dflydev\FigCookies\Cookie;
|
|
||||||
use Dflydev\FigCookies\FigResponseCookies;
|
use Dflydev\FigCookies\FigResponseCookies;
|
||||||
use Dflydev\FigCookies\SetCookie;
|
use Dflydev\FigCookies\SetCookie;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user