mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
Clean up
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user