Completed
Pull Request — master (#447)
by Marcel
02:29 queued 59s
created
src/Apps/App.php 1 patch
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Apps/ConfigAppManager.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Console/StartWebSocketServer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
     /**
186 186
      * Configure the replicators.
187 187
      *
188
-     * @return void
188
+     * @return StartWebSocketServer
189 189
      */
190 190
     public function configurePubSub()
191 191
     {
Please login to merge, or discard this patch.
src/HttpApi/Controllers/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/HttpApi/Controllers/FetchChannelsController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Server/Logger/ConnectionLogger.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Server/Logger/WebsocketsLogger.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Statistics/Logger/MemoryStatisticsLogger.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/WebSockets/Channels/ChannelManagers/ArrayChannelManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.