mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 12:03:01 +08:00
Merge pull request #3 from flarum/analysis-8bQjba
Applied fixes from StyleCI
This commit is contained in:
commit
f26b1a56da
|
@ -18,4 +18,4 @@ return function (Dispatcher $events) {
|
|||
$events->subscribe(Listener\ApproveContent::class);
|
||||
$events->subscribe(Listener\HideUnapprovedContent::class);
|
||||
$events->subscribe(Listener\UnapproveNewContent::class);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ class AddClientAssets
|
|||
|
||||
if ($event->isAdmin()) {
|
||||
$event->addAssets([
|
||||
__DIR__ . '/../../js/admin/dist/extension.js'
|
||||
__DIR__.'/../../js/admin/dist/extension.js'
|
||||
]);
|
||||
$event->addBootstrapper('flarum/approval/main');
|
||||
}
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
namespace Flarum\Approval\Listener;
|
||||
|
||||
use Flarum\Event\PrepareApiAttributes;
|
||||
use Flarum\Api\Serializer\DiscussionSerializer;
|
||||
use Flarum\Api\Serializer\PostSerializer;
|
||||
use Flarum\Event\PrepareApiAttributes;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class AddPostApprovalAttributes
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
namespace Flarum\Approval\Listener;
|
||||
|
||||
use Flarum\Core\Discussion;
|
||||
use Flarum\Event\ScopeHiddenDiscussionVisibility;
|
||||
use Flarum\Event\ScopeModelVisibility;
|
||||
use Flarum\Event\ScopePostVisibility;
|
||||
use Flarum\Event\ScopeHiddenDiscussionVisibility;
|
||||
use Flarum\Core\Discussion;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class HideUnapprovedContent
|
||||
|
|
Loading…
Reference in New Issue
Block a user