Applied fixes from StyleCI

This commit is contained in:
Toby Zerner 2016-02-25 22:56:35 -05:00 committed by StyleCI Bot
parent 8dcb680576
commit 478450b2ea
5 changed files with 10 additions and 7 deletions

View File

@ -38,7 +38,7 @@ class AuthController implements ControllerInterface
*/
public function handle(ServerRequestInterface $request)
{
$userChannel = 'private-user' . $request->getAttribute('actor')->id;
$userChannel = 'private-user'.$request->getAttribute('actor')->id;
$body = $request->getParsedBody();
if (array_get($body, 'channel_name') === $userChannel) {

View File

@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*
@ -38,7 +39,7 @@ class AddClientAssets
if ($event->isAdmin()) {
$event->addAssets([
__DIR__ . '/../../js/admin/dist/extension.js'
__DIR__.'/../../js/admin/dist/extension.js'
]);
$event->addBootstrapper('flarum/pusher/main');
}

View File

@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*
@ -67,7 +68,7 @@ class PushNewPosts
foreach ($event->users as $user) {
if ($user->shouldAlert($blueprint::getType())) {
$pusher->trigger('private-user' . $user->id, 'notification', null);
$pusher->trigger('private-user'.$user->id, 'notification', null);
}
}
}