From 970030b77ec4839e4f8ea19ac78643f7962134ba Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 22 Jul 2015 09:57:25 +0930 Subject: [PATCH] Random cleanup --- framework/core/js/forum/src/components/PostStream.js | 2 +- .../core/src/Core/Discussions/DiscussionRepository.php | 6 +++--- framework/core/src/Core/Search/SearchCriteria.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/framework/core/js/forum/src/components/PostStream.js b/framework/core/js/forum/src/components/PostStream.js index 26d05377f..506fe9fcf 100644 --- a/framework/core/js/forum/src/components/PostStream.js +++ b/framework/core/js/forum/src/components/PostStream.js @@ -338,7 +338,7 @@ class PostStream extends mixin(Component, evented) { if (start < this.visibleStart || end > this.visibleEnd) return; const anchorIndex = backwards ? this.visibleEnd - 1 : this.visibleStart; - anchorScroll(`.PostStream-item[data-index=${anchorIndex}]`, () => m.redraw(true)); + anchorScroll(`.PostStream-item[data-index="${anchorIndex}"]`, () => m.redraw(true)); this.unpause(); }; diff --git a/framework/core/src/Core/Discussions/DiscussionRepository.php b/framework/core/src/Core/Discussions/DiscussionRepository.php index 35e48caae..fa73745ff 100644 --- a/framework/core/src/Core/Discussions/DiscussionRepository.php +++ b/framework/core/src/Core/Discussions/DiscussionRepository.php @@ -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) diff --git a/framework/core/src/Core/Search/SearchCriteria.php b/framework/core/src/Core/Search/SearchCriteria.php index d08d5594f..a3f006eba 100644 --- a/framework/core/src/Core/Search/SearchCriteria.php +++ b/framework/core/src/Core/Search/SearchCriteria.php @@ -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 {