Skip to content

Commit e4f2a26

Browse files
committed
test fixes update
1 parent 336df35 commit e4f2a26

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/Centrifugo.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<?php
2-
32
namespace SKONIKS\Centrifugo;
3+
44
use GuzzleHttp\Client;
55
use Illuminate\Support\Facades\Redis;
66
use SKONIKS\Centrifugo\Transport\CHttp;
77
use SKONIKS\Centrifugo\Transport\CRedis;
8-
use SKONIKS\Centrifugo\Centrifugo;
98

109
class Centrifugo
1110
{
1211
protected $rmethods = ['publish', 'broadcast', 'unsubscribe', 'disconnect'];
1312
public function publish($channel, $data)
1413
{
15-
$params = [
14+
return $this->send('publish', [
1615
'channel' => $channel,
1716
'data' => $data,
18-
];
19-
return $this->send('publish', $params);
17+
];);
2018
}
2119
public function unsubscribe($channel, $user)
2220
{

src/Transport/CHttp.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function send($method, $params)
3030
} catch (ClientException $e) {
3131
throw new HttpException($e->getMessage(), $e->getCode(), $e);
3232
}
33-
3433
return $finally;
3534
}
3635
protected function generateSign($jsonData)

0 commit comments

Comments
 (0)