mirror of
https://github.com/flarum/core.git
synced 2025-08-24 09:03:05 +02:00
Random cleanup
This commit is contained in:
@@ -20,7 +20,7 @@ class DiscussionRepository
|
||||
* certain user, or throw an exception.
|
||||
*
|
||||
* @param integer $id
|
||||
* @param \Flarum\Core\Users\User $user
|
||||
* @param User $user
|
||||
* @return \Flarum\Core\Discussions\Discussion
|
||||
*/
|
||||
public function findOrFail($id, User $user = null)
|
||||
@@ -33,7 +33,7 @@ class DiscussionRepository
|
||||
/**
|
||||
* Get the IDs of discussions which a user has read completely.
|
||||
*
|
||||
* @param \Flarum\Core\Users\User $user
|
||||
* @param User $user
|
||||
* @return array
|
||||
*/
|
||||
public function getReadIds(User $user)
|
||||
@@ -48,7 +48,7 @@ class DiscussionRepository
|
||||
* Scope a query to only include records that are visible to a user.
|
||||
*
|
||||
* @param Builder $query
|
||||
* @param \Flarum\Core\Users\User $user
|
||||
* @param User $user
|
||||
* @return Builder
|
||||
*/
|
||||
protected function scopeVisibleTo(Builder $query, User $user = null)
|
||||
|
@@ -4,8 +4,8 @@ use Flarum\Core\Users\User;
|
||||
|
||||
/**
|
||||
* Represents the criteria that will determine the entire result set of a
|
||||
* search. The limit and offset are not included because they only
|
||||
* determine which part of the entire result set will be returned.
|
||||
* search. The limit and offset are not included because they only determine
|
||||
* which part of the entire result set will be returned.
|
||||
*/
|
||||
class SearchCriteria
|
||||
{
|
||||
|
Reference in New Issue
Block a user