Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit d529bb3

Browse files
authored
Merge pull request #314 from tiamo/master
fix facades autocompletion
2 parents a787442 + 719053d commit d529bb3

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/Websocket/Facades/Room.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @method static this prepare()
9-
* @method static this add($fd, $rooms)
10-
* @method static this delete($fd, $rooms)
8+
* @method static $this prepare()
9+
* @method static $this add($fd, $rooms)
10+
* @method static $this delete($fd, $rooms)
1111
* @method static array getClients($room)
1212
* @method static array getRooms($fd)
1313
*
@@ -24,4 +24,4 @@ protected static function getFacadeAccessor()
2424
{
2525
return 'swoole.room';
2626
}
27-
}
27+
}

src/Websocket/Facades/Websocket.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@
55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @method static this broadcast()
9-
* @method static this to($values)
10-
* @method static this join($rooms)
11-
* @method static this leave($rooms)
8+
* @method static $this broadcast()
9+
* @method static $this to($values)
10+
* @method static $this join($rooms)
11+
* @method static $this leave($rooms)
1212
* @method static boolean emit($event, $data)
13-
* @method static this in($room)
14-
* @method static this on($event, $callback)
13+
* @method static $this in($room)
14+
* @method static $this on($event, $callback)
1515
* @method static boolean eventExists($event)
1616
* @method static mixed call($event, $data)
1717
* @method static boolean close($fd)
18-
* @method static this setSender($fd)
18+
* @method static $this setSender($fd)
1919
* @method static int getSender()
2020
* @method static boolean getIsBroadcast()
2121
* @method static array getTo()
22-
* @method static this reset()
23-
* @method static this middleware($middleware)
24-
* @method static this setContainer($container)
25-
* @method static this setPipeline($pipeline)
22+
* @method static $this reset()
23+
* @method static $this middleware($middleware)
24+
* @method static $this setContainer($container)
25+
* @method static $this setPipeline($pipeline)
2626
* @method static \Illuminate\Contracts\Pipeline\Pipeline getPipeline()
2727
* @method static mixed loginUsing($user)
28-
* @method static this loginUsingId($userId)
29-
* @method static this logout()
30-
* @method static this toUser($users)
31-
* @method static this toUserId($userIds)
28+
* @method static $this loginUsingId($userId)
29+
* @method static $this logout()
30+
* @method static $this toUser($users)
31+
* @method static $this toUserId($userIds)
3232
* @method static string getUserId()
3333
* @method static boolean isUserIdOnline($userId)
3434
*
@@ -45,4 +45,4 @@ protected static function getFacadeAccessor()
4545
{
4646
return 'swoole.websocket';
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)