Completed
Push — master ( e26ab3...1dd3f4 )
by Maxime
9s
created
src/Core/AbstractConnection.php 1 patch
Unused Use Statements   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@
 block discarded – undo
11 11
 
12 12
 namespace Nekland\Woketo\Core;
13 13
 
14
-use Nekland\Woketo\Exception\NoHandlerException;
15
-use Nekland\Woketo\Exception\WebsocketException;
16
-use Nekland\Woketo\Message\MessageHandlerInterface;
17
-use Nekland\Woketo\Rfc6455\Frame;
18
-use Nekland\Woketo\Rfc6455\Handshake\HandshakeInterface;
19
-use Nekland\Woketo\Rfc6455\Message;
20
-use Nekland\Woketo\Rfc6455\MessageProcessor;
21
-use Nekland\Woketo\Utils\SimpleLogger;
22
-use Psr\Log\LoggerAwareTrait;
23
-use Psr\Log\LoggerInterface;
24
-use React\EventLoop\LoopInterface;
25
-use React\EventLoop\Timer\TimerInterface;
14
+use Nekland\Woketo\Exception\NoHandlerException;
15
+use Nekland\Woketo\Exception\WebsocketException;
16
+use Nekland\Woketo\Message\MessageHandlerInterface;
17
+use Nekland\Woketo\Rfc6455\Frame;
18
+use Nekland\Woketo\Rfc6455\Handshake\HandshakeInterface;
19
+use Nekland\Woketo\Rfc6455\Message;
20
+use Nekland\Woketo\Rfc6455\MessageProcessor;
21
+use Nekland\Woketo\Utils\SimpleLogger;
22
+use Psr\Log\LoggerAwareTrait;
23
+use Psr\Log\LoggerInterface;
24
+use React\EventLoop\LoopInterface;
25
+use React\EventLoop\Timer\TimerInterface;
26 26
 use React\Socket\Connection;
27 27
 
28 28
 abstract class AbstractConnection
Please login to merge, or discard this patch.
src/Utils/BitManipulation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * For the full license, take a look to the LICENSE file
9 9
  * on the root directory of this project
10 10
  */
11
-declare(strict_types=1);
11
+declare(strict_types = 1);
12 12
 
13 13
 namespace Nekland\Woketo\Utils;
14 14
 use Nekland\Woketo\Exception\Utils\NotLongEnoughException;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         if (\is_string($frame)) {
66 66
             $len = BitManipulation::frameSize($frame);
67 67
 
68
-            if ($byteNumber < 0 || $byteNumber > ($len-1)) {
68
+            if ($byteNumber < 0 || $byteNumber > ($len - 1)) {
69 69
                 throw new \InvalidArgumentException(
70 70
                     \sprintf('The frame is only %s bytes larges but you tried to get the %sth byte.', $len, $byteNumber)
71 71
                 );
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             $res = 0;
174 174
 
175 175
             // for each byte, getting ord
176
-            for($i = 0; $i < $subStringLength; $i++) {
176
+            for ($i = 0; $i < $subStringLength; $i++) {
177 177
                 $res <<= 8;
178 178
                 $res += \ord($subString[$i]);
179 179
             }
Please login to merge, or discard this patch.