Completed
Push — master ( fb7101...406522 )
by y
01:25
created
src/WebSocket/Handshake.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,12 +107,10 @@
 block discarded – undo
107 107
             }
108 108
             $this->buffer = ''; // wipe the buffer
109 109
             $this->validate();
110
-        }
111
-        catch (WebSocketError $e) { // catch and respond with HTTP error and rethrow
110
+        } catch (WebSocketError $e) { // catch and respond with HTTP error and rethrow
112 111
             $this->client->write("HTTP/1.1 {$e->getCode()} WebSocket Handshake Failure\r\n\r\n");
113 112
             throw $e;
114
-        }
115
-        catch (Throwable $e) { // catch everything else and respond with HTTP 500 and rethrow
113
+        } catch (Throwable $e) { // catch everything else and respond with HTTP 500 and rethrow
116 114
             $this->client->write("HTTP/1.1 500 WebSocket Internal Error\r\n\r\n");
117 115
             throw $e;
118 116
         }
Please login to merge, or discard this patch.