Passed
Branch master (7810ab)
by PHPinnacle
03:44
created
Category
src/BufferOverflow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Buffer;
14 14
 
Please login to merge, or discard this patch.
src/ByteBuffer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Buffer;
14 14
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             $this->size = \strlen($this->data);
41 41
 
42 42
             if (!isset(self::$isLittleEndian)) {
43
-                self::$isLittleEndian  = \unpack("S", "\x01\x00")[1] === 1;
43
+                self::$isLittleEndian = \unpack("S", "\x01\x00")[1] === 1;
44 44
             }
45 45
         }
46 46
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
          */
514 514
         private static function swapEndian16(string $s): string
515 515
         {
516
-            return self::$isLittleEndian ? $s[1] . $s[0] : $s;
516
+            return self::$isLittleEndian ? $s[1].$s[0] : $s;
517 517
         }
518 518
 
519 519
         /**
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
          */
524 524
         private static function swapEndian32(string $s): string
525 525
         {
526
-            return self::$isLittleEndian ? $s[3] . $s[2] . $s[1] . $s[0] : $s;
526
+            return self::$isLittleEndian ? $s[3].$s[2].$s[1].$s[0] : $s;
527 527
         }
528 528
 
529 529
         /**
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
          */
534 534
         private static function swapEndian64(string $s): string
535 535
         {
536
-            return self::$isLittleEndian ? $s[7] . $s[6] . $s[5] . $s[4] . $s[3] . $s[2] . $s[1] . $s[0] : $s;
536
+            return self::$isLittleEndian ? $s[7].$s[6].$s[5].$s[4].$s[3].$s[2].$s[1].$s[0] : $s;
537 537
         }
538 538
     }
539 539
 }
Please login to merge, or discard this patch.