Passed
Pull Request — master (#10)
by thomas
04:09 queued 02:09
created
src/bech32.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
11 11
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
12 12
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
13
-    15, -1, 10, 17, 21, 20, 26, 30,  7,  5, -1, -1, -1, -1, -1, -1,
14
-    -1, 29, -1, 24, 13, 25,  9,  8, 23, -1, 18, 22, 31, 27, 19, -1,
15
-    1,  0,  3, 16, 11, 28, 12, 14,  6,  4,  2, -1, -1, -1, -1, -1,
16
-    -1, 29, -1, 24, 13, 25,  9,  8, 23, -1, 18, 22, 31, 27, 19, -1,
17
-    1,  0,  3, 16, 11, 28, 12, 14,  6,  4,  2, -1, -1, -1, -1, -1
13
+    15, -1, 10, 17, 21, 20, 26, 30, 7, 5, -1, -1, -1, -1, -1, -1,
14
+    -1, 29, -1, 24, 13, 25, 9, 8, 23, -1, 18, 22, 31, 27, 19, -1,
15
+    1, 0, 3, 16, 11, 28, 12, 14, 6, 4, 2, -1, -1, -1, -1, -1,
16
+    -1, 29, -1, 24, 13, 25, 9, 8, 23, -1, 18, 22, 31, 27, 19, -1,
17
+    1, 0, 3, 16, 11, 28, 12, 14, 6, 4, 2, -1, -1, -1, -1, -1
18 18
 ];
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
test/Unit/DecodeTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         \BitWasp\Bech32\decode($hasValidChecksum);
55 55
 
56 56
         $pos = strrpos($hasValidChecksum, "1");
57
-        $invalidChecksum = substr($hasValidChecksum, 0, $pos+1) . chr(ord($hasValidChecksum[$pos+1])^1) . substr($hasValidChecksum, $pos+2);
57
+        $invalidChecksum = substr($hasValidChecksum, 0, $pos + 1) . chr(ord($hasValidChecksum[$pos + 1]) ^ 1) . substr($hasValidChecksum, $pos + 2);
58 58
 
59 59
         $this->expectException(Bech32Exception::class);
60 60
         \BitWasp\Bech32\decode($invalidChecksum);
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
     {
68 68
         return [
69 69
             [" 1nwldj5"],
70
-            ["\x7f"."1axkwrx"],
70
+            ["\x7f" . "1axkwrx"],
71 71
             ["an84characterslonghumanreadablepartthatcontainsthenumber1andtheexcludedcharactersbio1569pvx"],
72 72
             ["pzry9x0s0muk"],
73 73
             ["1pzry9x0s0muk"],
74 74
             ["x1b4n0q5v"],
75 75
             ["li1dgmt3"],
76
-            ["de1lg7wt"."\xff"],
76
+            ["de1lg7wt" . "\xff"],
77 77
         ];
78 78
     }
79 79
 
Please login to merge, or discard this patch.