Skip to content

Commit

Permalink
Merge pull request #6 from KyrneDev/analysis-M1daaK
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
KyrneDev committed Aug 22, 2021
2 parents 1839920 + 8bd9062 commit 2baee4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Api/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ protected function getPusher()
$this->settings->get('kyrne-websocket.app_secret'),
$this->settings->get('kyrne-websocket.app_id'),
[
"host" => $this->settings->get('kyrne-websocket.app_host'),
"port" => $this->settings->get('kyrne-websocket.app_port')
'host' => $this->settings->get('kyrne-websocket.app_host'),
'port' => $this->settings->get('kyrne-websocket.app_port'),
]
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/SendWebsocketPostJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use Flarum\Queue\AbstractJob;
use Flarum\User\Guest;
use Flarum\User\User;
use GuzzleHttp\Promise;
use Illuminate\Support\Str;
use Pusher\Pusher;
use GuzzleHttp\Promise;

class SendWebsocketPostJob extends AbstractJob
{
Expand Down
8 changes: 5 additions & 3 deletions src/WebSockets/TriggerBroadcastController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class TriggerBroadcastController extends TriggerEvent
{
/**
* @param Request $request
*
* @return \Illuminate\Http\Response|object
*/
public function __invoke(Request $request)
Expand All @@ -33,13 +34,14 @@ public function __invoke(Request $request)
// then the message simply will get broadcasted
// across the other servers.
$channel = $this->channelManager->find(
$request->appId, $channelName
$request->appId,
$channelName
);

$payload = [
'event' => $request->name,
'event' => $request->name,
'channel' => $channelName,
'data' => $request->data,
'data' => $request->data,
];

if ($channel) {
Expand Down

0 comments on commit 2baee4a

Please sign in to comment.