@@ -62,45 +62,45 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | */ |
199 | 199 | public function getformatPattern(int $maskPattern):int{ |
200 | 200 | |
201 | - if((0b111 & $maskPattern) !== $maskPattern){ |
|
201 | + if((0b111&$maskPattern) !== $maskPattern){ |
|
202 | 202 | throw new QRCodeException('invalid mask pattern'); |
203 | 203 | } |
204 | 204 |