Completed
Push — master ( e26ab3...1dd3f4 )
by Maxime
9s
created
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.