@@ -81,12 +81,12 @@ |
||
| 81 | 81 | { |
| 82 | 82 | $isPrivate = function ($query) use ($user) { |
| 83 | 83 | $query->where('visibility_level', '=', self::VISIBILITY_PRIVATE) |
| 84 | - ->where("{$this->tableName}.creator_id", '=', $user->id); |
|
| 84 | + ->where("{$this->tableName}.creator_id", '=', $user->id); |
|
| 85 | 85 | }; |
| 86 | 86 | |
| 87 | 87 | $whereVisible = function ($query) use ($isPrivate) { |
| 88 | 88 | $query->whereIn('visibility_level', [self::VISIBILITY_PUBLIC, self::VISIBILITY_LOGGED_IN]) |
| 89 | - ->orWhere($isPrivate); |
|
| 89 | + ->orWhere($isPrivate); |
|
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | 92 | return $query->where($whereVisible); |
@@ -79,12 +79,12 @@ |
||
| 79 | 79 | */ |
| 80 | 80 | public function applyLoggedInScope(Builder $query, User $user) |
| 81 | 81 | { |
| 82 | - $isPrivate = function ($query) use ($user) { |
|
| 82 | + $isPrivate = function($query) use ($user) { |
|
| 83 | 83 | $query->where('visibility_level', '=', self::VISIBILITY_PRIVATE) |
| 84 | 84 | ->where("{$this->tableName}.creator_id", '=', $user->id); |
| 85 | 85 | }; |
| 86 | 86 | |
| 87 | - $whereVisible = function ($query) use ($isPrivate) { |
|
| 87 | + $whereVisible = function($query) use ($isPrivate) { |
|
| 88 | 88 | $query->whereIn('visibility_level', [self::VISIBILITY_PUBLIC, self::VISIBILITY_LOGGED_IN]) |
| 89 | 89 | ->orWhere($isPrivate); |
| 90 | 90 | }; |