@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Find the app by app key. |
| 52 | 52 | * |
| 53 | - * @param mixed $appId |
|
| 53 | + * @param string $appKey |
|
| 54 | 54 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
| 55 | 55 | */ |
| 56 | 56 | public static function findByKey($appKey): ?self |
@@ -61,7 +61,6 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * Find the app by app secret. |
| 63 | 63 | * |
| 64 | - * @param mixed $appId |
|
| 65 | 64 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
| 66 | 65 | */ |
| 67 | 66 | public static function findBySecret($appSecret): ?self |
@@ -73,8 +72,6 @@ discard block |
||
| 73 | 72 | * Initialize the Web Socket app instance. |
| 74 | 73 | * |
| 75 | 74 | * @param mixed $appId |
| 76 | - * @param mixed $key |
|
| 77 | - * @param mixed $secret |
|
| 78 | 75 | * @return void |
| 79 | 76 | * @throws \BeyondCode\LaravelWebSockets\Exceptions\InvalidApp |
| 80 | 77 | */ |
@@ -83,7 +83,6 @@ |
||
| 83 | 83 | /** |
| 84 | 84 | * Map the app into an App instance. |
| 85 | 85 | * |
| 86 | - * @param array|null $app |
|
| 87 | 86 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
| 88 | 87 | */ |
| 89 | 88 | protected function instantiate(?array $appAttributes): ?App |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | /** |
| 186 | 186 | * Configure the replicators. |
| 187 | 187 | * |
| 188 | - * @return void |
|
| 188 | + * @return StartWebSocketServer |
|
| 189 | 189 | */ |
| 190 | 190 | public function configurePubSub() |
| 191 | 191 | { |
@@ -227,7 +227,7 @@ |
||
| 227 | 227 | * Ensure signature integrity coming from an |
| 228 | 228 | * authorized application. |
| 229 | 229 | * |
| 230 | - * @param \GuzzleHttp\Psr7\ServerRequest $request |
|
| 230 | + * @param Request $request |
|
| 231 | 231 | * @return $this |
| 232 | 232 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException |
| 233 | 233 | */ |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * Handle the incoming request. |
| 39 | 39 | * |
| 40 | 40 | * @param \Illuminate\Http\Request $request |
| 41 | - * @return \Illuminate\Http\Response |
|
| 41 | + * @return \React\Promise\PromiseInterface |
|
| 42 | 42 | */ |
| 43 | 43 | public function __invoke(Request $request) |
| 44 | 44 | { |
@@ -8,8 +8,8 @@ |
||
| 8 | 8 | use Illuminate\Http\Request; |
| 9 | 9 | use Illuminate\Support\Collection; |
| 10 | 10 | use Illuminate\Support\Str; |
| 11 | -use stdClass; |
|
| 12 | 11 | use Symfony\Component\HttpKernel\Exception\HttpException; |
| 12 | +use stdClass; |
|
| 13 | 13 | |
| 14 | 14 | class FetchChannelsController extends Controller |
| 15 | 15 | { |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * Create a new instance and add a connection to watch. |
| 18 | 18 | * |
| 19 | - * @param \Ratchet\ConnectionInterface $connection |
|
| 20 | - * @return self |
|
| 19 | + * @return ConnectionInterface |
|
| 21 | 20 | */ |
| 22 | 21 | public static function decorate(ConnectionInterface $app): self |
| 23 | 22 | { |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * Create a new instance and add the app to watch. |
| 22 | 22 | * |
| 23 | - * @param \Ratchet\MessageComponentInterface $app |
|
| 24 | - * @return self |
|
| 23 | + * @param MessageComponentInterface $app |
|
| 24 | + * @return \Ratchet\ComponentInterface |
|
| 25 | 25 | */ |
| 26 | 26 | public static function decorate(MessageComponentInterface $app): self |
| 27 | 27 | { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Set a new app to watch. |
| 35 | 35 | * |
| 36 | - * @param \Ratchet\MessageComponentInterface $app |
|
| 36 | + * @param MessageComponentInterface $app |
|
| 37 | 37 | * @return $this |
| 38 | 38 | */ |
| 39 | 39 | public function setApp(MessageComponentInterface $app) |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace BeyondCode\LaravelWebSockets\Statistics\Logger; |
| 4 | 4 | |
| 5 | -use BeyondCode\LaravelWebSockets\Apps\App; |
|
| 6 | 5 | use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver; |
| 7 | 6 | use BeyondCode\LaravelWebSockets\Statistics\Statistic; |
| 8 | 7 | use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * |
| 32 | 32 | * @param mixed $appId |
| 33 | 33 | * @param string $channelName |
| 34 | - * @return \BeyondCode\LaravelWebSockets\WebSockets\Channels |
|
| 34 | + * @return Channel |
|
| 35 | 35 | */ |
| 36 | 36 | public function findOrCreate($appId, string $channelName): Channel |
| 37 | 37 | { |