Completed
Pull Request — master (#60)
by Kun
06:38
created
src/Base.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -2,17 +2,12 @@
 block discarded – undo
2 2
 namespace Laravoole;
3 3
 
4 4
 use Exception;
5
-use ErrorException;
6
-
7 5
 use swoole_http_request;
8
-
9 6
 use Laravoole\Illuminate\Application;
10 7
 use Laravoole\Illuminate\Request as IlluminateRequest;
11
-
12 8
 use Illuminate\Support\Facades\Facade;
13 9
 use Illuminate\Contracts\Cookie\QueueingFactory as CookieJar;
14 10
 use Psr\Http\Message\ServerRequestInterface;
15
-
16 11
 use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
17 12
 use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
18 13
 
Please login to merge, or discard this patch.
src/Commands/LaravooleCommand.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@
 block discarded – undo
75 75
         }
76 76
     }
77 77
 
78
+    /**
79
+     * @param integer $sig
80
+     */
78 81
     protected function sendSignal($sig)
79 82
     {
80 83
         if ($pid = $this->getPid()) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 namespace Laravoole\Commands;
4 4
 
5 5
 use ReflectionClass;
6
-
7 6
 use Illuminate\Console\Command;
8
-use Symfony\Component\Console\Input\InputOption;
9 7
 
10 8
 class LaravooleCommand extends Command
11 9
 {
Please login to merge, or discard this patch.
src/LaravooleBoardcaster.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      *
35 35
      * @param  \Illuminate\Http\Request  $request
36 36
      * @param  mixed  $result
37
-     * @return mixed
37
+     * @return string
38 38
      */
39 39
     public function validAuthenticationResponse($request, $result)
40 40
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Illuminate\Support\Str;
7 7
 use Symfony\Component\HttpKernel\Exception\HttpException;
8 8
 use Illuminate\Broadcasting\Broadcasters\Broadcaster;
9
-
10 9
 use Laravoole\LaravooleFacade;
11 10
 
12 11
 class LaravooleBroadcaster extends Broadcaster
Please login to merge, or discard this patch.
src/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
     /**
102 102
      * 设置Http头信息
103
-     * @param $key
103
+     * @param string $key
104 104
      * @param $value
105 105
      */
106 106
     public function header($key, $value)
Please login to merge, or discard this patch.
src/Wrapper/Swoole.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Laravoole\Wrapper;
3 3
 
4
-use swoole_http_server;
5
-
6 4
 use Laravoole\Base;
7
-use Exception;
8 5
 
9 6
 abstract class Swoole extends Base
10 7
 {
Please login to merge, or discard this patch.
src/Wrapper/SwooleHttpWrapper.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use swoole_http_server;
5 5
 
6
-use Symfony\Component\HttpFoundation\BinaryFileResponse;
7
-
8 6
 class SwooleHttpWrapper extends Swoole implements ServerInterface
9 7
 {
10 8
     use HttpTrait;
Please login to merge, or discard this patch.
src/Wrapper/SwooleWebSocketWrapper.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -4,15 +4,11 @@
 block discarded – undo
4 4
 use swoole_websocket_server;
5 5
 use swoole_http_request;
6 6
 use swoole_http_response;
7
-use swoole_process;
8
-
9 7
 use Laravoole\Request;
10 8
 use Laravoole\Response;
11 9
 use Laravoole\WebsocketCodec\Json;
12 10
 use Laravoole\WebsocketCodec\JsonRpc;
13 11
 
14
-use Symfony\Component\HttpFoundation\BinaryFileResponse;
15
-
16 12
 class SwooleWebSocketWrapper extends SwooleHttpWrapper implements ServerInterface
17 13
 {
18 14
     protected $defaultProtocol;
Please login to merge, or discard this patch.
src/Wrapper/Workerman.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Laravoole\Base;
5 5
 use Exception;
6
-use Workerman\Worker;
7 6
 
8 7
 abstract class Workerman extends Base implements ServerInterface
9 8
 {
Please login to merge, or discard this patch.