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 4b461a5 commit 1857a44
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
12 changes: 6 additions & 6 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@

return [
(new Extend\Frontend('forum'))
->js(__DIR__ . '/js/dist/forum.js')
->css(__DIR__ . '/resources/less/forum.less')
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less')
->route('/polls', 'fof_polls_directory', Content\PollsDirectory::class),

(new Extend\Frontend('admin'))
->js(__DIR__ . '/js/dist/admin.js')
->css(__DIR__ . '/resources/less/admin.less'),
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/resources/less/admin.less'),

new Extend\Locales(__DIR__ . '/resources/locale'),
new Extend\Locales(__DIR__.'/resources/locale'),

(new Extend\Routes('api'))
->post('/fof/polls', 'fof.polls.create', Controllers\CreatePollController::class)
Expand Down Expand Up @@ -106,5 +106,5 @@
->scope(Access\ScopePollVisibility::class),

(new Extend\View())
->namespace('fof-polls', __DIR__ . '/resources/views'),
->namespace('fof-polls', __DIR__.'/resources/views'),
];
11 changes: 10 additions & 1 deletion src/Content/PollsDirectory.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\Content;

use Flarum\Api\Client;
Expand Down Expand Up @@ -55,7 +64,7 @@ private function getDocument(User $actor, array $params, ServerRequestInterface

return json_decode($this->api->withQueryParams($params)->withParentRequest($request)->get('/fof/polls')->getBody());
}

public function __invoke(Document $document, ServerRequestInterface $request): Document
{
$queryParams = $request->getQueryParams();
Expand Down

0 comments on commit 1857a44

Please sign in to comment.