Passed
Push — v5 ( abf6c2...81dcab )
by smiley
01:49
created
src/Common/EccLevel.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -62,45 +62,45 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	private const MAX_BITS = [
64 64
 	//  v  => [    L,     M,     Q,     H]  // modules
65
-		1  => [  152,   128,   104,    72], //  21
66
-		2  => [  272,   224,   176,   128], //  25
67
-		3  => [  440,   352,   272,   208], //  29
68
-		4  => [  640,   512,   384,   288], //  33
69
-		5  => [  864,   688,   496,   368], //  37
70
-		6  => [ 1088,   864,   608,   480], //  41
71
-		7  => [ 1248,   992,   704,   528], //  45
72
-		8  => [ 1552,  1232,   880,   688], //  49
73
-		9  => [ 1856,  1456,  1056,   800], //  53
74
-		10 => [ 2192,  1728,  1232,   976], //  57
75
-		11 => [ 2592,  2032,  1440,  1120], //  61
76
-		12 => [ 2960,  2320,  1648,  1264], //  65
77
-		13 => [ 3424,  2672,  1952,  1440], //  69 NICE!
78
-		14 => [ 3688,  2920,  2088,  1576], //  73
79
-		15 => [ 4184,  3320,  2360,  1784], //  77
80
-		16 => [ 4712,  3624,  2600,  2024], //  81
81
-		17 => [ 5176,  4056,  2936,  2264], //  85
82
-		18 => [ 5768,  4504,  3176,  2504], //  89
83
-		19 => [ 6360,  5016,  3560,  2728], //  93
84
-		20 => [ 6888,  5352,  3880,  3080], //  97
85
-		21 => [ 7456,  5712,  4096,  3248], // 101
86
-		22 => [ 8048,  6256,  4544,  3536], // 105
87
-		23 => [ 8752,  6880,  4912,  3712], // 109
88
-		24 => [ 9392,  7312,  5312,  4112], // 113
89
-		25 => [10208,  8000,  5744,  4304], // 117
90
-		26 => [10960,  8496,  6032,  4768], // 121
91
-		27 => [11744,  9024,  6464,  5024], // 125
92
-		28 => [12248,  9544,  6968,  5288], // 129
93
-		29 => [13048, 10136,  7288,  5608], // 133
94
-		30 => [13880, 10984,  7880,  5960], // 137
95
-		31 => [14744, 11640,  8264,  6344], // 141
96
-		32 => [15640, 12328,  8920,  6760], // 145
97
-		33 => [16568, 13048,  9368,  7208], // 149
98
-		34 => [17528, 13800,  9848,  7688], // 153
99
-		35 => [18448, 14496, 10288,  7888], // 157
100
-		36 => [19472, 15312, 10832,  8432], // 161
101
-		37 => [20528, 15936, 11408,  8768], // 165
102
-		38 => [21616, 16816, 12016,  9136], // 169
103
-		39 => [22496, 17728, 12656,  9776], // 173
65
+		1  => [152, 128, 104, 72], //  21
66
+		2  => [272, 224, 176, 128], //  25
67
+		3  => [440, 352, 272, 208], //  29
68
+		4  => [640, 512, 384, 288], //  33
69
+		5  => [864, 688, 496, 368], //  37
70
+		6  => [1088, 864, 608, 480], //  41
71
+		7  => [1248, 992, 704, 528], //  45
72
+		8  => [1552, 1232, 880, 688], //  49
73
+		9  => [1856, 1456, 1056, 800], //  53
74
+		10 => [2192, 1728, 1232, 976], //  57
75
+		11 => [2592, 2032, 1440, 1120], //  61
76
+		12 => [2960, 2320, 1648, 1264], //  65
77
+		13 => [3424, 2672, 1952, 1440], //  69 NICE!
78
+		14 => [3688, 2920, 2088, 1576], //  73
79
+		15 => [4184, 3320, 2360, 1784], //  77
80
+		16 => [4712, 3624, 2600, 2024], //  81
81
+		17 => [5176, 4056, 2936, 2264], //  85
82
+		18 => [5768, 4504, 3176, 2504], //  89
83
+		19 => [6360, 5016, 3560, 2728], //  93
84
+		20 => [6888, 5352, 3880, 3080], //  97
85
+		21 => [7456, 5712, 4096, 3248], // 101
86
+		22 => [8048, 6256, 4544, 3536], // 105
87
+		23 => [8752, 6880, 4912, 3712], // 109
88
+		24 => [9392, 7312, 5312, 4112], // 113
89
+		25 => [10208, 8000, 5744, 4304], // 117
90
+		26 => [10960, 8496, 6032, 4768], // 121
91
+		27 => [11744, 9024, 6464, 5024], // 125
92
+		28 => [12248, 9544, 6968, 5288], // 129
93
+		29 => [13048, 10136, 7288, 5608], // 133
94
+		30 => [13880, 10984, 7880, 5960], // 137
95
+		31 => [14744, 11640, 8264, 6344], // 141
96
+		32 => [15640, 12328, 8920, 6760], // 145
97
+		33 => [16568, 13048, 9368, 7208], // 149
98
+		34 => [17528, 13800, 9848, 7688], // 153
99
+		35 => [18448, 14496, 10288, 7888], // 157
100
+		36 => [19472, 15312, 10832, 8432], // 161
101
+		37 => [20528, 15936, 11408, 8768], // 165
102
+		38 => [21616, 16816, 12016, 9136], // 169
103
+		39 => [22496, 17728, 12656, 9776], // 173
104 104
 		40 => [23648, 18672, 13328, 10208], // 177
105 105
 	];
106 106
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 	 * @var int[][]
113 113
 	 */
114 114
 	private const FORMAT_PATTERN = [
115
-		[ // L
115
+		[// L
116 116
 		  0b111011111000100,
117 117
 		  0b111001011110011,
118 118
 		  0b111110110101010,
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 		  0b110110001000001,
123 123
 		  0b110100101110110,
124 124
 		],
125
-		[ // M
125
+		[// M
126 126
 		  0b101010000010010,
127 127
 		  0b101000100100101,
128 128
 		  0b101111001111100,
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 		  0b100111110010111,
133 133
 		  0b100101010100000,
134 134
 		],
135
-		[ // Q
135
+		[// Q
136 136
 		  0b011010101011111,
137 137
 		  0b011000001101000,
138 138
 		  0b011111100110001,
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		  0b010111011011010,
143 143
 		  0b010101111101101,
144 144
 		],
145
-		[ // H
145
+		[// H
146 146
 		  0b001011010001001,
147 147
 		  0b001001110111110,
148 148
 		  0b001110011100111,
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 */
164 164
 	public function __construct(int $eccLevel){
165 165
 
166
-		if((0b11 & $eccLevel) !== $eccLevel){
166
+		if((0b11&$eccLevel) !== $eccLevel){
167 167
 			throw new QRCodeException('invalid ECC level');
168 168
 		}
169 169
 
Please login to merge, or discard this patch.
src/Common/MaskPattern.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 	 */
50 50
 	public function __construct(int $maskPattern){
51 51
 
52
-		if((0b111 & $maskPattern) !== $maskPattern){
52
+		if((0b111&$maskPattern) !== $maskPattern){
53 53
 			throw new QRCodeException('invalid mask pattern');
54 54
 		}
55 55
 
Please login to merge, or discard this patch.
src/Common/ECICharset.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
 
18 18
 class ECICharset{
19 19
 
20
-	public const CP437                 = 0;  // Code page 437, DOS Latin US
21
-	public const ISO_IEC_8859_1_GLI    = 1;  // GLI encoding with characters 0 to 127 identical to ISO/IEC 646 and characters 128 to 255 identical to ISO 8859-1
22
-	public const CP437_WO_GLI          = 2;  // An equivalent code table to CP437, without the return-to-GLI 0 logic
23
-	public const ISO_IEC_8859_1        = 3;  // Latin-1 (Default)
24
-	public const ISO_IEC_8859_2        = 4;  // Latin-2
25
-	public const ISO_IEC_8859_3        = 5;  // Latin-3
26
-	public const ISO_IEC_8859_4        = 6;  // Latin-4
27
-	public const ISO_IEC_8859_5        = 7;  // Latin/Cyrillic
28
-	public const ISO_IEC_8859_6        = 8;  // Latin/Arabic
29
-	public const ISO_IEC_8859_7        = 9;  // Latin/Greek
20
+	public const CP437                 = 0; // Code page 437, DOS Latin US
21
+	public const ISO_IEC_8859_1_GLI    = 1; // GLI encoding with characters 0 to 127 identical to ISO/IEC 646 and characters 128 to 255 identical to ISO 8859-1
22
+	public const CP437_WO_GLI          = 2; // An equivalent code table to CP437, without the return-to-GLI 0 logic
23
+	public const ISO_IEC_8859_1        = 3; // Latin-1 (Default)
24
+	public const ISO_IEC_8859_2        = 4; // Latin-2
25
+	public const ISO_IEC_8859_3        = 5; // Latin-3
26
+	public const ISO_IEC_8859_4        = 6; // Latin-4
27
+	public const ISO_IEC_8859_5        = 7; // Latin/Cyrillic
28
+	public const ISO_IEC_8859_6        = 8; // Latin/Arabic
29
+	public const ISO_IEC_8859_7        = 9; // Latin/Greek
30 30
 	public const ISO_IEC_8859_8        = 10; // Latin/Hebrew
31 31
 	public const ISO_IEC_8859_9        = 11; // Latin-5
32 32
 	public const ISO_IEC_8859_10       = 12; // Latin-6
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		return $this->charsetID;
102 102
 	}
103 103
 
104
-	public function getName():?string{
104
+	public function getName(): ?string{
105 105
 		return self::MB_ENCODINGS[$this->charsetID];
106 106
 	}
107 107
 
Please login to merge, or discard this patch.