1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 04:00:40 +02:00

Applied fixes from StyleCI

This commit is contained in:
Toby Zerner
2016-02-25 22:09:39 -05:00
committed by StyleCI Bot
parent 83c22d73a4
commit a6cf10f854
96 changed files with 240 additions and 245 deletions

View File

@@ -87,7 +87,7 @@ class ListPostsController extends AbstractCollectionController
if (($near = array_get($queryParams, 'page.near')) > 1) {
if (count($filter) > 1 || ! isset($filter['discussion']) || $sort) {
throw new InvalidParameterException('You can only use page[near] with '
. 'filter[discussion] and the default sort order');
.'filter[discussion] and the default sort order');
}
$offset = $this->posts->getIndexForNumber($filter['discussion'], $near, $actor);