Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Dec 17, 2017
1 parent 9657af6 commit 2a02602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Handshake.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function decodeResponse(string $headerBuffer): array {
}

$connection = $headers['connection'][0] ?? '';
if (!\in_array('upgrade', array_map('trim', array_map('strtolower', explode(',', $connection))), true)) {
if (!\in_array('upgrade', \array_map('trim', \array_map('strtolower', \explode(',', $connection))), true)) {
throw new WebSocketException('Missing "Connection: upgrade" header.');
}

Expand Down

0 comments on commit 2a02602

Please sign in to comment.