Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jan 30, 2024
1 parent d49c1f9 commit d56bf39
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Api/Controllers/ListPollsController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of fof/polls.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace FoF\Polls\Api\Controllers;

use Flarum\Api\Controller\AbstractListController;
Expand All @@ -26,7 +35,7 @@ class ListPollsController extends AbstractListController
* @var UrlGenerator
*/
protected $url;

public function __construct(UrlGenerator $url)
{
$this->url = $url;
Expand All @@ -51,7 +60,7 @@ public function data(ServerRequestInterface $request, Document $document): Colle
->orderBy('id')
->skip($offset)
->take($limit);

$totalItems = $results->count();
$results = $results->get();

Expand Down

0 comments on commit d56bf39

Please sign in to comment.