Passed
Pull Request — master (#452)
by
unknown
03:41
created
src/HttpServiceProvider.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,8 +173,9 @@
 block discarded – undo
173 173
 
174 174
         static::$server = new $server($host, $port, $processType, $socketType);
175 175
 
176
-        if(intval($ssl_port) > 0)
177
-            static::$server->listen($host, $ssl_port, SWOOLE_SOCK_TCP | SWOOLE_SSL );
176
+        if(intval($ssl_port) > 0) {
177
+                    static::$server->listen($host, $ssl_port, SWOOLE_SOCK_TCP | SWOOLE_SSL );
178
+        }
178 179
     }
179 180
 
180 181
     /**
Please login to merge, or discard this patch.
src/Commands/HttpServerCommand.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,9 @@
 block discarded – undo
108 108
 
109 109
         $this->info('Starting swoole http server...');
110 110
         $this->info("Swoole http server started: <http://{$host}:{$port}>");
111
-        if(intval($ssl_port) > 0)
112
-            $this->info("Swoole https server started: <https://{$host}:{$ssl_port}>");
111
+        if(intval($ssl_port) > 0) {
112
+                    $this->info("Swoole https server started: <https://{$host}:{$ssl_port}>");
113
+        }
113 114
 
114 115
         if ($this->isDaemon()) {
115 116
             $this->info(
Please login to merge, or discard this patch.