mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
More indentation cleanup
This commit is contained in:
@@ -86,8 +86,9 @@ 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');
|
||||
throw new InvalidParameterException(
|
||||
'You can only use page[near] with filter[discussion] and the default sort order'
|
||||
);
|
||||
}
|
||||
|
||||
$offset = $this->posts->getIndexForNumber($filter['discussion'], $near, $actor);
|
||||
|
Reference in New Issue
Block a user