@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return array ( |
|
3 | +return array( |
|
4 | 4 | '̀' => 230, |
5 | 5 | '́' => 230, |
6 | 6 | '̂' => 230, |
@@ -1,876 +1,876 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return array ( |
4 | - '̀' => 230, |
|
5 | - '́' => 230, |
|
6 | - '̂' => 230, |
|
7 | - '̃' => 230, |
|
8 | - '̄' => 230, |
|
9 | - '̅' => 230, |
|
10 | - '̆' => 230, |
|
11 | - '̇' => 230, |
|
12 | - '̈' => 230, |
|
13 | - '̉' => 230, |
|
14 | - '̊' => 230, |
|
15 | - '̋' => 230, |
|
16 | - '̌' => 230, |
|
17 | - '̍' => 230, |
|
18 | - '̎' => 230, |
|
19 | - '̏' => 230, |
|
20 | - '̐' => 230, |
|
21 | - '̑' => 230, |
|
22 | - '̒' => 230, |
|
23 | - '̓' => 230, |
|
24 | - '̔' => 230, |
|
25 | - '̕' => 232, |
|
26 | - '̖' => 220, |
|
27 | - '̗' => 220, |
|
28 | - '̘' => 220, |
|
29 | - '̙' => 220, |
|
30 | - '̚' => 232, |
|
31 | - '̛' => 216, |
|
32 | - '̜' => 220, |
|
33 | - '̝' => 220, |
|
34 | - '̞' => 220, |
|
35 | - '̟' => 220, |
|
36 | - '̠' => 220, |
|
37 | - '̡' => 202, |
|
38 | - '̢' => 202, |
|
39 | - '̣' => 220, |
|
40 | - '̤' => 220, |
|
41 | - '̥' => 220, |
|
42 | - '̦' => 220, |
|
43 | - '̧' => 202, |
|
44 | - '̨' => 202, |
|
45 | - '̩' => 220, |
|
46 | - '̪' => 220, |
|
47 | - '̫' => 220, |
|
48 | - '̬' => 220, |
|
49 | - '̭' => 220, |
|
50 | - '̮' => 220, |
|
51 | - '̯' => 220, |
|
52 | - '̰' => 220, |
|
53 | - '̱' => 220, |
|
54 | - '̲' => 220, |
|
55 | - '̳' => 220, |
|
56 | - '̴' => 1, |
|
57 | - '̵' => 1, |
|
58 | - '̶' => 1, |
|
59 | - '̷' => 1, |
|
60 | - '̸' => 1, |
|
61 | - '̹' => 220, |
|
62 | - '̺' => 220, |
|
63 | - '̻' => 220, |
|
64 | - '̼' => 220, |
|
65 | - '̽' => 230, |
|
66 | - '̾' => 230, |
|
67 | - '̿' => 230, |
|
68 | - '̀' => 230, |
|
69 | - '́' => 230, |
|
70 | - '͂' => 230, |
|
71 | - '̓' => 230, |
|
72 | - '̈́' => 230, |
|
73 | - 'ͅ' => 240, |
|
74 | - '͆' => 230, |
|
75 | - '͇' => 220, |
|
76 | - '͈' => 220, |
|
77 | - '͉' => 220, |
|
78 | - '͊' => 230, |
|
79 | - '͋' => 230, |
|
80 | - '͌' => 230, |
|
81 | - '͍' => 220, |
|
82 | - '͎' => 220, |
|
83 | - '͐' => 230, |
|
84 | - '͑' => 230, |
|
85 | - '͒' => 230, |
|
86 | - '͓' => 220, |
|
87 | - '͔' => 220, |
|
88 | - '͕' => 220, |
|
89 | - '͖' => 220, |
|
90 | - '͗' => 230, |
|
91 | - '͘' => 232, |
|
92 | - '͙' => 220, |
|
93 | - '͚' => 220, |
|
94 | - '͛' => 230, |
|
95 | - '͜' => 233, |
|
96 | - '͝' => 234, |
|
97 | - '͞' => 234, |
|
98 | - '͟' => 233, |
|
99 | - '͠' => 234, |
|
100 | - '͡' => 234, |
|
101 | - '͢' => 233, |
|
102 | - 'ͣ' => 230, |
|
103 | - 'ͤ' => 230, |
|
104 | - 'ͥ' => 230, |
|
105 | - 'ͦ' => 230, |
|
106 | - 'ͧ' => 230, |
|
107 | - 'ͨ' => 230, |
|
108 | - 'ͩ' => 230, |
|
109 | - 'ͪ' => 230, |
|
110 | - 'ͫ' => 230, |
|
111 | - 'ͬ' => 230, |
|
112 | - 'ͭ' => 230, |
|
113 | - 'ͮ' => 230, |
|
114 | - 'ͯ' => 230, |
|
115 | - '҃' => 230, |
|
116 | - '҄' => 230, |
|
117 | - '҅' => 230, |
|
118 | - '҆' => 230, |
|
119 | - '҇' => 230, |
|
120 | - '֑' => 220, |
|
121 | - '֒' => 230, |
|
122 | - '֓' => 230, |
|
123 | - '֔' => 230, |
|
124 | - '֕' => 230, |
|
125 | - '֖' => 220, |
|
126 | - '֗' => 230, |
|
127 | - '֘' => 230, |
|
128 | - '֙' => 230, |
|
129 | - '֚' => 222, |
|
130 | - '֛' => 220, |
|
131 | - '֜' => 230, |
|
132 | - '֝' => 230, |
|
133 | - '֞' => 230, |
|
134 | - '֟' => 230, |
|
135 | - '֠' => 230, |
|
136 | - '֡' => 230, |
|
137 | - '֢' => 220, |
|
138 | - '֣' => 220, |
|
139 | - '֤' => 220, |
|
140 | - '֥' => 220, |
|
141 | - '֦' => 220, |
|
142 | - '֧' => 220, |
|
143 | - '֨' => 230, |
|
144 | - '֩' => 230, |
|
145 | - '֪' => 220, |
|
146 | - '֫' => 230, |
|
147 | - '֬' => 230, |
|
148 | - '֭' => 222, |
|
149 | - '֮' => 228, |
|
150 | - '֯' => 230, |
|
151 | - 'ְ' => 10, |
|
152 | - 'ֱ' => 11, |
|
153 | - 'ֲ' => 12, |
|
154 | - 'ֳ' => 13, |
|
155 | - 'ִ' => 14, |
|
156 | - 'ֵ' => 15, |
|
157 | - 'ֶ' => 16, |
|
158 | - 'ַ' => 17, |
|
159 | - 'ָ' => 18, |
|
160 | - 'ֹ' => 19, |
|
161 | - 'ֺ' => 19, |
|
162 | - 'ֻ' => 20, |
|
163 | - 'ּ' => 21, |
|
164 | - 'ֽ' => 22, |
|
165 | - 'ֿ' => 23, |
|
166 | - 'ׁ' => 24, |
|
167 | - 'ׂ' => 25, |
|
168 | - 'ׄ' => 230, |
|
169 | - 'ׅ' => 220, |
|
170 | - 'ׇ' => 18, |
|
171 | - 'ؐ' => 230, |
|
172 | - 'ؑ' => 230, |
|
173 | - 'ؒ' => 230, |
|
174 | - 'ؓ' => 230, |
|
175 | - 'ؔ' => 230, |
|
176 | - 'ؕ' => 230, |
|
177 | - 'ؖ' => 230, |
|
178 | - 'ؗ' => 230, |
|
179 | - 'ؘ' => 30, |
|
180 | - 'ؙ' => 31, |
|
181 | - 'ؚ' => 32, |
|
182 | - 'ً' => 27, |
|
183 | - 'ٌ' => 28, |
|
184 | - 'ٍ' => 29, |
|
185 | - 'َ' => 30, |
|
186 | - 'ُ' => 31, |
|
187 | - 'ِ' => 32, |
|
188 | - 'ّ' => 33, |
|
189 | - 'ْ' => 34, |
|
190 | - 'ٓ' => 230, |
|
191 | - 'ٔ' => 230, |
|
192 | - 'ٕ' => 220, |
|
193 | - 'ٖ' => 220, |
|
194 | - 'ٗ' => 230, |
|
195 | - '٘' => 230, |
|
196 | - 'ٙ' => 230, |
|
197 | - 'ٚ' => 230, |
|
198 | - 'ٛ' => 230, |
|
199 | - 'ٜ' => 220, |
|
200 | - 'ٝ' => 230, |
|
201 | - 'ٞ' => 230, |
|
202 | - 'ٟ' => 220, |
|
203 | - 'ٰ' => 35, |
|
204 | - 'ۖ' => 230, |
|
205 | - 'ۗ' => 230, |
|
206 | - 'ۘ' => 230, |
|
207 | - 'ۙ' => 230, |
|
208 | - 'ۚ' => 230, |
|
209 | - 'ۛ' => 230, |
|
210 | - 'ۜ' => 230, |
|
211 | - '۟' => 230, |
|
212 | - '۠' => 230, |
|
213 | - 'ۡ' => 230, |
|
214 | - 'ۢ' => 230, |
|
215 | - 'ۣ' => 220, |
|
216 | - 'ۤ' => 230, |
|
217 | - 'ۧ' => 230, |
|
218 | - 'ۨ' => 230, |
|
219 | - '۪' => 220, |
|
220 | - '۫' => 230, |
|
221 | - '۬' => 230, |
|
222 | - 'ۭ' => 220, |
|
223 | - 'ܑ' => 36, |
|
224 | - 'ܰ' => 230, |
|
225 | - 'ܱ' => 220, |
|
226 | - 'ܲ' => 230, |
|
227 | - 'ܳ' => 230, |
|
228 | - 'ܴ' => 220, |
|
229 | - 'ܵ' => 230, |
|
230 | - 'ܶ' => 230, |
|
231 | - 'ܷ' => 220, |
|
232 | - 'ܸ' => 220, |
|
233 | - 'ܹ' => 220, |
|
234 | - 'ܺ' => 230, |
|
235 | - 'ܻ' => 220, |
|
236 | - 'ܼ' => 220, |
|
237 | - 'ܽ' => 230, |
|
238 | - 'ܾ' => 220, |
|
239 | - 'ܿ' => 230, |
|
240 | - '݀' => 230, |
|
241 | - '݁' => 230, |
|
242 | - '݂' => 220, |
|
243 | - '݃' => 230, |
|
244 | - '݄' => 220, |
|
245 | - '݅' => 230, |
|
246 | - '݆' => 220, |
|
247 | - '݇' => 230, |
|
248 | - '݈' => 220, |
|
249 | - '݉' => 230, |
|
250 | - '݊' => 230, |
|
251 | - '߫' => 230, |
|
252 | - '߬' => 230, |
|
253 | - '߭' => 230, |
|
254 | - '߮' => 230, |
|
255 | - '߯' => 230, |
|
256 | - '߰' => 230, |
|
257 | - '߱' => 230, |
|
258 | - '߲' => 220, |
|
259 | - '߳' => 230, |
|
260 | - '߽' => 220, |
|
261 | - 'ࠖ' => 230, |
|
262 | - 'ࠗ' => 230, |
|
263 | - '࠘' => 230, |
|
264 | - '࠙' => 230, |
|
265 | - 'ࠛ' => 230, |
|
266 | - 'ࠜ' => 230, |
|
267 | - 'ࠝ' => 230, |
|
268 | - 'ࠞ' => 230, |
|
269 | - 'ࠟ' => 230, |
|
270 | - 'ࠠ' => 230, |
|
271 | - 'ࠡ' => 230, |
|
272 | - 'ࠢ' => 230, |
|
273 | - 'ࠣ' => 230, |
|
274 | - 'ࠥ' => 230, |
|
275 | - 'ࠦ' => 230, |
|
276 | - 'ࠧ' => 230, |
|
277 | - 'ࠩ' => 230, |
|
278 | - 'ࠪ' => 230, |
|
279 | - 'ࠫ' => 230, |
|
280 | - 'ࠬ' => 230, |
|
281 | - '࠭' => 230, |
|
282 | - '࡙' => 220, |
|
283 | - '࡚' => 220, |
|
284 | - '࡛' => 220, |
|
285 | - '࣓' => 220, |
|
286 | - 'ࣔ' => 230, |
|
287 | - 'ࣕ' => 230, |
|
288 | - 'ࣖ' => 230, |
|
289 | - 'ࣗ' => 230, |
|
290 | - 'ࣘ' => 230, |
|
291 | - 'ࣙ' => 230, |
|
292 | - 'ࣚ' => 230, |
|
293 | - 'ࣛ' => 230, |
|
294 | - 'ࣜ' => 230, |
|
295 | - 'ࣝ' => 230, |
|
296 | - 'ࣞ' => 230, |
|
297 | - 'ࣟ' => 230, |
|
298 | - '࣠' => 230, |
|
299 | - '࣡' => 230, |
|
300 | - 'ࣣ' => 220, |
|
301 | - 'ࣤ' => 230, |
|
302 | - 'ࣥ' => 230, |
|
303 | - 'ࣦ' => 220, |
|
304 | - 'ࣧ' => 230, |
|
305 | - 'ࣨ' => 230, |
|
306 | - 'ࣩ' => 220, |
|
307 | - '࣪' => 230, |
|
308 | - '࣫' => 230, |
|
309 | - '࣬' => 230, |
|
310 | - '࣭' => 220, |
|
311 | - '࣮' => 220, |
|
312 | - '࣯' => 220, |
|
313 | - 'ࣰ' => 27, |
|
314 | - 'ࣱ' => 28, |
|
315 | - 'ࣲ' => 29, |
|
316 | - 'ࣳ' => 230, |
|
317 | - 'ࣴ' => 230, |
|
318 | - 'ࣵ' => 230, |
|
319 | - 'ࣶ' => 220, |
|
320 | - 'ࣷ' => 230, |
|
321 | - 'ࣸ' => 230, |
|
322 | - 'ࣹ' => 220, |
|
323 | - 'ࣺ' => 220, |
|
324 | - 'ࣻ' => 230, |
|
325 | - 'ࣼ' => 230, |
|
326 | - 'ࣽ' => 230, |
|
327 | - 'ࣾ' => 230, |
|
328 | - 'ࣿ' => 230, |
|
329 | - '़' => 7, |
|
330 | - '्' => 9, |
|
331 | - '॑' => 230, |
|
332 | - '॒' => 220, |
|
333 | - '॓' => 230, |
|
334 | - '॔' => 230, |
|
335 | - '়' => 7, |
|
336 | - '্' => 9, |
|
337 | - '৾' => 230, |
|
338 | - '਼' => 7, |
|
339 | - '੍' => 9, |
|
340 | - '઼' => 7, |
|
341 | - '્' => 9, |
|
342 | - '଼' => 7, |
|
343 | - '୍' => 9, |
|
344 | - '்' => 9, |
|
345 | - '్' => 9, |
|
346 | - 'ౕ' => 84, |
|
347 | - 'ౖ' => 91, |
|
348 | - '಼' => 7, |
|
349 | - '್' => 9, |
|
350 | - '഻' => 9, |
|
351 | - '഼' => 9, |
|
352 | - '്' => 9, |
|
353 | - '්' => 9, |
|
354 | - 'ุ' => 103, |
|
355 | - 'ู' => 103, |
|
356 | - 'ฺ' => 9, |
|
357 | - '่' => 107, |
|
358 | - '้' => 107, |
|
359 | - '๊' => 107, |
|
360 | - '๋' => 107, |
|
361 | - 'ຸ' => 118, |
|
362 | - 'ູ' => 118, |
|
363 | - '຺' => 9, |
|
364 | - '່' => 122, |
|
365 | - '້' => 122, |
|
366 | - '໊' => 122, |
|
367 | - '໋' => 122, |
|
368 | - '༘' => 220, |
|
369 | - '༙' => 220, |
|
370 | - '༵' => 220, |
|
371 | - '༷' => 220, |
|
372 | - '༹' => 216, |
|
373 | - 'ཱ' => 129, |
|
374 | - 'ི' => 130, |
|
375 | - 'ུ' => 132, |
|
376 | - 'ེ' => 130, |
|
377 | - 'ཻ' => 130, |
|
378 | - 'ོ' => 130, |
|
379 | - 'ཽ' => 130, |
|
380 | - 'ྀ' => 130, |
|
381 | - 'ྂ' => 230, |
|
382 | - 'ྃ' => 230, |
|
383 | - '྄' => 9, |
|
384 | - '྆' => 230, |
|
385 | - '྇' => 230, |
|
386 | - '࿆' => 220, |
|
387 | - '့' => 7, |
|
388 | - '္' => 9, |
|
389 | - '်' => 9, |
|
390 | - 'ႍ' => 220, |
|
391 | - '፝' => 230, |
|
392 | - '፞' => 230, |
|
393 | - '፟' => 230, |
|
394 | - '᜔' => 9, |
|
395 | - '᜴' => 9, |
|
396 | - '្' => 9, |
|
397 | - '៝' => 230, |
|
398 | - 'ᢩ' => 228, |
|
399 | - '᤹' => 222, |
|
400 | - '᤺' => 230, |
|
401 | - '᤻' => 220, |
|
402 | - 'ᨗ' => 230, |
|
403 | - 'ᨘ' => 220, |
|
404 | - '᩠' => 9, |
|
405 | - '᩵' => 230, |
|
406 | - '᩶' => 230, |
|
407 | - '᩷' => 230, |
|
408 | - '᩸' => 230, |
|
409 | - '᩹' => 230, |
|
410 | - '᩺' => 230, |
|
411 | - '᩻' => 230, |
|
412 | - '᩼' => 230, |
|
413 | - '᩿' => 220, |
|
414 | - '᪰' => 230, |
|
415 | - '᪱' => 230, |
|
416 | - '᪲' => 230, |
|
417 | - '᪳' => 230, |
|
418 | - '᪴' => 230, |
|
419 | - '᪵' => 220, |
|
420 | - '᪶' => 220, |
|
421 | - '᪷' => 220, |
|
422 | - '᪸' => 220, |
|
423 | - '᪹' => 220, |
|
424 | - '᪺' => 220, |
|
425 | - '᪻' => 230, |
|
426 | - '᪼' => 230, |
|
427 | - '᪽' => 220, |
|
428 | - 'ᪿ' => 220, |
|
429 | - 'ᫀ' => 220, |
|
430 | - '᬴' => 7, |
|
431 | - '᭄' => 9, |
|
432 | - '᭫' => 230, |
|
433 | - '᭬' => 220, |
|
434 | - '᭭' => 230, |
|
435 | - '᭮' => 230, |
|
436 | - '᭯' => 230, |
|
437 | - '᭰' => 230, |
|
438 | - '᭱' => 230, |
|
439 | - '᭲' => 230, |
|
440 | - '᭳' => 230, |
|
441 | - '᮪' => 9, |
|
442 | - '᮫' => 9, |
|
443 | - '᯦' => 7, |
|
444 | - '᯲' => 9, |
|
445 | - '᯳' => 9, |
|
446 | - '᰷' => 7, |
|
447 | - '᳐' => 230, |
|
448 | - '᳑' => 230, |
|
449 | - '᳒' => 230, |
|
450 | - '᳔' => 1, |
|
451 | - '᳕' => 220, |
|
452 | - '᳖' => 220, |
|
453 | - '᳗' => 220, |
|
454 | - '᳘' => 220, |
|
455 | - '᳙' => 220, |
|
456 | - '᳚' => 230, |
|
457 | - '᳛' => 230, |
|
458 | - '᳜' => 220, |
|
459 | - '᳝' => 220, |
|
460 | - '᳞' => 220, |
|
461 | - '᳟' => 220, |
|
462 | - '᳠' => 230, |
|
463 | - '᳢' => 1, |
|
464 | - '᳣' => 1, |
|
465 | - '᳤' => 1, |
|
466 | - '᳥' => 1, |
|
467 | - '᳦' => 1, |
|
468 | - '᳧' => 1, |
|
469 | - '᳨' => 1, |
|
470 | - '᳭' => 220, |
|
471 | - '᳴' => 230, |
|
472 | - '᳸' => 230, |
|
473 | - '᳹' => 230, |
|
474 | - '᷀' => 230, |
|
475 | - '᷁' => 230, |
|
476 | - '᷂' => 220, |
|
477 | - '᷃' => 230, |
|
478 | - '᷄' => 230, |
|
479 | - '᷅' => 230, |
|
480 | - '᷆' => 230, |
|
481 | - '᷇' => 230, |
|
482 | - '᷈' => 230, |
|
483 | - '᷉' => 230, |
|
484 | - '᷊' => 220, |
|
485 | - '᷋' => 230, |
|
486 | - '᷌' => 230, |
|
487 | - '᷍' => 234, |
|
488 | - '᷎' => 214, |
|
489 | - '᷏' => 220, |
|
490 | - '᷐' => 202, |
|
491 | - '᷑' => 230, |
|
492 | - '᷒' => 230, |
|
493 | - 'ᷓ' => 230, |
|
494 | - 'ᷔ' => 230, |
|
495 | - 'ᷕ' => 230, |
|
496 | - 'ᷖ' => 230, |
|
497 | - 'ᷗ' => 230, |
|
498 | - 'ᷘ' => 230, |
|
499 | - 'ᷙ' => 230, |
|
500 | - 'ᷚ' => 230, |
|
501 | - 'ᷛ' => 230, |
|
502 | - 'ᷜ' => 230, |
|
503 | - 'ᷝ' => 230, |
|
504 | - 'ᷞ' => 230, |
|
505 | - 'ᷟ' => 230, |
|
506 | - 'ᷠ' => 230, |
|
507 | - 'ᷡ' => 230, |
|
508 | - 'ᷢ' => 230, |
|
509 | - 'ᷣ' => 230, |
|
510 | - 'ᷤ' => 230, |
|
511 | - 'ᷥ' => 230, |
|
512 | - 'ᷦ' => 230, |
|
513 | - 'ᷧ' => 230, |
|
514 | - 'ᷨ' => 230, |
|
515 | - 'ᷩ' => 230, |
|
516 | - 'ᷪ' => 230, |
|
517 | - 'ᷫ' => 230, |
|
518 | - 'ᷬ' => 230, |
|
519 | - 'ᷭ' => 230, |
|
520 | - 'ᷮ' => 230, |
|
521 | - 'ᷯ' => 230, |
|
522 | - 'ᷰ' => 230, |
|
523 | - 'ᷱ' => 230, |
|
524 | - 'ᷲ' => 230, |
|
525 | - 'ᷳ' => 230, |
|
526 | - 'ᷴ' => 230, |
|
527 | - '᷵' => 230, |
|
528 | - '᷶' => 232, |
|
529 | - '᷷' => 228, |
|
530 | - '᷸' => 228, |
|
531 | - '᷹' => 220, |
|
532 | - '᷻' => 230, |
|
533 | - '᷼' => 233, |
|
534 | - '᷽' => 220, |
|
535 | - '᷾' => 230, |
|
536 | - '᷿' => 220, |
|
537 | - '⃐' => 230, |
|
538 | - '⃑' => 230, |
|
539 | - '⃒' => 1, |
|
540 | - '⃓' => 1, |
|
541 | - '⃔' => 230, |
|
542 | - '⃕' => 230, |
|
543 | - '⃖' => 230, |
|
544 | - '⃗' => 230, |
|
545 | - '⃘' => 1, |
|
546 | - '⃙' => 1, |
|
547 | - '⃚' => 1, |
|
548 | - '⃛' => 230, |
|
549 | - '⃜' => 230, |
|
550 | - '⃡' => 230, |
|
551 | - '⃥' => 1, |
|
552 | - '⃦' => 1, |
|
553 | - '⃧' => 230, |
|
554 | - '⃨' => 220, |
|
555 | - '⃩' => 230, |
|
556 | - '⃪' => 1, |
|
557 | - '⃫' => 1, |
|
558 | - '⃬' => 220, |
|
559 | - '⃭' => 220, |
|
560 | - '⃮' => 220, |
|
561 | - '⃯' => 220, |
|
562 | - '⃰' => 230, |
|
563 | - '⳯' => 230, |
|
564 | - '⳰' => 230, |
|
565 | - '⳱' => 230, |
|
566 | - '⵿' => 9, |
|
567 | - 'ⷠ' => 230, |
|
568 | - 'ⷡ' => 230, |
|
569 | - 'ⷢ' => 230, |
|
570 | - 'ⷣ' => 230, |
|
571 | - 'ⷤ' => 230, |
|
572 | - 'ⷥ' => 230, |
|
573 | - 'ⷦ' => 230, |
|
574 | - 'ⷧ' => 230, |
|
575 | - 'ⷨ' => 230, |
|
576 | - 'ⷩ' => 230, |
|
577 | - 'ⷪ' => 230, |
|
578 | - 'ⷫ' => 230, |
|
579 | - 'ⷬ' => 230, |
|
580 | - 'ⷭ' => 230, |
|
581 | - 'ⷮ' => 230, |
|
582 | - 'ⷯ' => 230, |
|
583 | - 'ⷰ' => 230, |
|
584 | - 'ⷱ' => 230, |
|
585 | - 'ⷲ' => 230, |
|
586 | - 'ⷳ' => 230, |
|
587 | - 'ⷴ' => 230, |
|
588 | - 'ⷵ' => 230, |
|
589 | - 'ⷶ' => 230, |
|
590 | - 'ⷷ' => 230, |
|
591 | - 'ⷸ' => 230, |
|
592 | - 'ⷹ' => 230, |
|
593 | - 'ⷺ' => 230, |
|
594 | - 'ⷻ' => 230, |
|
595 | - 'ⷼ' => 230, |
|
596 | - 'ⷽ' => 230, |
|
597 | - 'ⷾ' => 230, |
|
598 | - 'ⷿ' => 230, |
|
599 | - '〪' => 218, |
|
600 | - '〫' => 228, |
|
601 | - '〬' => 232, |
|
602 | - '〭' => 222, |
|
603 | - '〮' => 224, |
|
604 | - '〯' => 224, |
|
605 | - '゙' => 8, |
|
606 | - '゚' => 8, |
|
607 | - '꙯' => 230, |
|
608 | - 'ꙴ' => 230, |
|
609 | - 'ꙵ' => 230, |
|
610 | - 'ꙶ' => 230, |
|
611 | - 'ꙷ' => 230, |
|
612 | - 'ꙸ' => 230, |
|
613 | - 'ꙹ' => 230, |
|
614 | - 'ꙺ' => 230, |
|
615 | - 'ꙻ' => 230, |
|
616 | - '꙼' => 230, |
|
617 | - '꙽' => 230, |
|
618 | - 'ꚞ' => 230, |
|
619 | - 'ꚟ' => 230, |
|
620 | - '꛰' => 230, |
|
621 | - '꛱' => 230, |
|
622 | - '꠆' => 9, |
|
623 | - '꠬' => 9, |
|
624 | - '꣄' => 9, |
|
625 | - '꣠' => 230, |
|
626 | - '꣡' => 230, |
|
627 | - '꣢' => 230, |
|
628 | - '꣣' => 230, |
|
629 | - '꣤' => 230, |
|
630 | - '꣥' => 230, |
|
631 | - '꣦' => 230, |
|
632 | - '꣧' => 230, |
|
633 | - '꣨' => 230, |
|
634 | - '꣩' => 230, |
|
635 | - '꣪' => 230, |
|
636 | - '꣫' => 230, |
|
637 | - '꣬' => 230, |
|
638 | - '꣭' => 230, |
|
639 | - '꣮' => 230, |
|
640 | - '꣯' => 230, |
|
641 | - '꣰' => 230, |
|
642 | - '꣱' => 230, |
|
643 | - '꤫' => 220, |
|
644 | - '꤬' => 220, |
|
645 | - '꤭' => 220, |
|
646 | - '꥓' => 9, |
|
647 | - '꦳' => 7, |
|
648 | - '꧀' => 9, |
|
649 | - 'ꪰ' => 230, |
|
650 | - 'ꪲ' => 230, |
|
651 | - 'ꪳ' => 230, |
|
652 | - 'ꪴ' => 220, |
|
653 | - 'ꪷ' => 230, |
|
654 | - 'ꪸ' => 230, |
|
655 | - 'ꪾ' => 230, |
|
656 | - '꪿' => 230, |
|
657 | - '꫁' => 230, |
|
658 | - '꫶' => 9, |
|
659 | - '꯭' => 9, |
|
660 | - 'ﬞ' => 26, |
|
661 | - '︠' => 230, |
|
662 | - '︡' => 230, |
|
663 | - '︢' => 230, |
|
664 | - '︣' => 230, |
|
665 | - '︤' => 230, |
|
666 | - '︥' => 230, |
|
667 | - '︦' => 230, |
|
668 | - '︧' => 220, |
|
669 | - '︨' => 220, |
|
670 | - '︩' => 220, |
|
671 | - '︪' => 220, |
|
672 | - '︫' => 220, |
|
673 | - '︬' => 220, |
|
674 | - '︭' => 220, |
|
675 | - '︮' => 230, |
|
676 | - '︯' => 230, |
|
677 | - ' |
@@ -15,5 +15,5 @@ |
||
15 | 15 | function normalizer_is_normalized(?string $string, ?int $form = p\Normalizer::FORM_C): bool { return p\Normalizer::isNormalized((string) $string, (int) $form); } |
16 | 16 | } |
17 | 17 | if (!function_exists('normalizer_normalize')) { |
18 | - function normalizer_normalize(?string $string, ?int $form = p\Normalizer::FORM_C): string|false { return p\Normalizer::normalize((string) $string, (int) $form); } |
|
18 | + function normalizer_normalize(?string $string, ?int $form = p\Normalizer::FORM_C): string | false { return p\Normalizer::normalize((string) $string, (int) $form); } |
|
19 | 19 | } |
@@ -274,7 +274,7 @@ |
||
274 | 274 | $j = (($uchr[1] - 224) << 12) + (($uchr[2] - 128) << 6) + $uchr[3] - 0xAC80; |
275 | 275 | |
276 | 276 | $uchr = "\xE1\x84".\chr(0x80 + (int) ($j / 588)) |
277 | - ."\xE1\x85".\chr(0xA1 + (int) (($j % 588) / 28)); |
|
277 | + ."\xE1\x85".\chr(0xA1 + (int) (($j % 588) / 28)); |
|
278 | 278 | |
279 | 279 | if ($j %= 28) { |
280 | 280 | $uchr .= $j < 25 |
@@ -156,8 +156,8 @@ discard block |
||
156 | 156 | |
157 | 157 | $ucls = $combClass[$uchr] ?? 0; |
158 | 158 | |
159 | - if (isset($compMap[$lastUchr.$uchr]) && (!$lastUcls || $lastUcls < $ucls)) { |
|
160 | - $lastUchr = $compMap[$lastUchr.$uchr]; |
|
159 | + if (isset($compMap[$lastUchr . $uchr]) && (!$lastUcls || $lastUcls < $ucls)) { |
|
160 | + $lastUchr = $compMap[$lastUchr . $uchr]; |
|
161 | 161 | } elseif ($lastUcls = $ucls) { |
162 | 162 | $tail .= $uchr; |
163 | 163 | } else { |
@@ -185,13 +185,13 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | $L = 0xAC00 + ($L * 21 + $V) * 28 + $T; |
188 | - $lastUchr = \chr(0xE0 | $L >> 12).\chr(0x80 | $L >> 6 & 0x3F).\chr(0x80 | $L & 0x3F); |
|
188 | + $lastUchr = \chr(0xE0 | $L >> 12) . \chr(0x80 | $L >> 6 & 0x3F) . \chr(0x80 | $L & 0x3F); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | $i += $ulen; |
192 | 192 | } |
193 | 193 | |
194 | - return $result.$lastUchr.$tail; |
|
194 | + return $result . $lastUchr . $tail; |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | private static function decompose($s, $c) |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $i -= $j; |
247 | 247 | |
248 | 248 | if (0 > $i) { |
249 | - $s = str_repeat(' ', -$i).$s; |
|
249 | + $s = str_repeat(' ', -$i) . $s; |
|
250 | 250 | $len -= $i; |
251 | 251 | $i = 0; |
252 | 252 | } |
@@ -273,13 +273,13 @@ discard block |
||
273 | 273 | $uchr = unpack('C*', $uchr); |
274 | 274 | $j = (($uchr[1] - 224) << 12) + (($uchr[2] - 128) << 6) + $uchr[3] - 0xAC80; |
275 | 275 | |
276 | - $uchr = "\xE1\x84".\chr(0x80 + (int) ($j / 588)) |
|
277 | - ."\xE1\x85".\chr(0xA1 + (int) (($j % 588) / 28)); |
|
276 | + $uchr = "\xE1\x84" . \chr(0x80 + (int) ($j / 588)) |
|
277 | + ."\xE1\x85" . \chr(0xA1 + (int) (($j % 588) / 28)); |
|
278 | 278 | |
279 | 279 | if ($j %= 28) { |
280 | 280 | $uchr .= $j < 25 |
281 | - ? ("\xE1\x86".\chr(0xA7 + $j)) |
|
282 | - : ("\xE1\x87".\chr(0x67 + $j)); |
|
281 | + ? ("\xE1\x86" . \chr(0xA7 + $j)) |
|
282 | + : ("\xE1\x87" . \chr(0x67 + $j)); |
|
283 | 283 | } |
284 | 284 | } |
285 | 285 | if ($c) { |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | private static function getData($file) |
303 | 303 | { |
304 | - if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { |
|
304 | + if (file_exists($file = __DIR__ . '/Resources/unidata/' . $file . '.php')) { |
|
305 | 305 | return require $file; |
306 | 306 | } |
307 | 307 |
@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | return sprintf('!php/const %s::%s', \get_class($value), $value->name); |
134 | 134 | case \is_object($value): |
135 | 135 | if ($value instanceof TaggedValue) { |
136 | - return '!'.$value->getTag().' '.self::dump($value->getValue(), $flags); |
|
136 | + return '!' . $value->getTag() . ' ' . self::dump($value->getValue(), $flags); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | if (Yaml::DUMP_OBJECT & $flags) { |
140 | - return '!php/object '.self::dump(serialize($value)); |
|
140 | + return '!php/object ' . self::dump(serialize($value)); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | if (Yaml::DUMP_OBJECT_AS_MAP & $flags && ($value instanceof \stdClass || $value instanceof \ArrayObject)) { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | } elseif (floor($value) == $value && $repr == $value) { |
178 | 178 | // Preserve float data type since storing a whole number will result in integer value. |
179 | 179 | if (false === strpos($repr, 'E')) { |
180 | - $repr = $repr.'.0'; |
|
180 | + $repr = $repr . '.0'; |
|
181 | 181 | } |
182 | 182 | } |
183 | 183 | } else { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | case '' == $value: |
192 | 192 | return "''"; |
193 | 193 | case self::isBinaryString($value): |
194 | - return '!!binary '.base64_encode($value); |
|
194 | + return '!!binary ' . base64_encode($value); |
|
195 | 195 | case Escaper::requiresDoubleQuoting($value): |
196 | 196 | return Escaper::escapeWithDoubleQuotes($value); |
197 | 197 | case Escaper::requiresSingleQuoting($value): |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | if (Parser::preg_match('/[ \t]+#/', $output, $match, \PREG_OFFSET_CAPTURE)) { |
298 | 298 | $output = substr($output, 0, $match[0][1]); |
299 | 299 | } |
300 | - } elseif (Parser::preg_match('/^(.*?)('.implode('|', $delimiters).')/', substr($scalar, $i), $match)) { |
|
300 | + } elseif (Parser::preg_match('/^(.*?)(' . implode('|', $delimiters) . ')/', substr($scalar, $i), $match)) { |
|
301 | 301 | $output = $match[1]; |
302 | 302 | $i += \strlen($output); |
303 | 303 | $output = trim($output); |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | */ |
326 | 326 | private static function parseQuotedScalar(string $scalar, int &$i = 0): string |
327 | 327 | { |
328 | - if (!Parser::preg_match('/'.self::REGEX_QUOTED_STRING.'/Au', substr($scalar, $i), $match)) { |
|
328 | + if (!Parser::preg_match('/' . self::REGEX_QUOTED_STRING . '/Au', substr($scalar, $i), $match)) { |
|
329 | 329 | throw new ParseException(sprintf('Malformed inline YAML string: "%s".', substr($scalar, $i)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename); |
330 | 330 | } |
331 | 331 | |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | // embedded mapping? |
391 | 391 | try { |
392 | 392 | $pos = 0; |
393 | - $value = self::parseMapping('{'.$value.'}', $flags, $pos, $references); |
|
393 | + $value = self::parseMapping('{' . $value . '}', $flags, $pos, $references); |
|
394 | 394 | } catch (\InvalidArgumentException $e) { |
395 | 395 | // no, it's not |
396 | 396 | } |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | } |
458 | 458 | |
459 | 459 | if ('!php/const' === $key) { |
460 | - $key .= ' '.self::parseScalar($mapping, $flags, [':'], $i, false); |
|
460 | + $key .= ' ' . self::parseScalar($mapping, $flags, [':'], $i, false); |
|
461 | 461 | $key = self::evaluateScalar($key, $flags); |
462 | 462 | } |
463 | 463 | |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | switch (true) { |
678 | 678 | case ctype_digit($scalar): |
679 | 679 | if (preg_match('/^0[0-7]+$/', $scalar)) { |
680 | - trigger_deprecation('symfony/yaml', '5.1', 'Support for parsing numbers prefixed with 0 as octal numbers. They will be parsed as strings as of 6.0. Use "%s" to represent the octal number.', '0o'.substr($scalar, 1)); |
|
680 | + trigger_deprecation('symfony/yaml', '5.1', 'Support for parsing numbers prefixed with 0 as octal numbers. They will be parsed as strings as of 6.0. Use "%s" to represent the octal number.', '0o' . substr($scalar, 1)); |
|
681 | 681 | |
682 | 682 | return octdec($scalar); |
683 | 683 | } |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | return ($scalar === (string) $cast) ? $cast : $scalar; |
688 | 688 | case '-' === $scalar[0] && ctype_digit(substr($scalar, 1)): |
689 | 689 | if (preg_match('/^-0[0-7]+$/', $scalar)) { |
690 | - trigger_deprecation('symfony/yaml', '5.1', 'Support for parsing numbers prefixed with 0 as octal numbers. They will be parsed as strings as of 6.0. Use "%s" to represent the octal number.', '-0o'.substr($scalar, 2)); |
|
690 | + trigger_deprecation('symfony/yaml', '5.1', 'Support for parsing numbers prefixed with 0 as octal numbers. They will be parsed as strings as of 6.0. Use "%s" to represent the octal number.', '-0o' . substr($scalar, 2)); |
|
691 | 691 | |
692 | 692 | return -octdec(substr($scalar, 1)); |
693 | 693 | } |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | case Parser::preg_match(self::getHexRegex(), $scalar): |
700 | 700 | $scalar = str_replace('_', '', $scalar); |
701 | 701 | |
702 | - return '0x' === $scalar[0].$scalar[1] ? hexdec($scalar) : (float) $scalar; |
|
702 | + return '0x' === $scalar[0] . $scalar[1] ? hexdec($scalar) : (float) $scalar; |
|
703 | 703 | case '.inf' === $scalarLower: |
704 | 704 | case '.nan' === $scalarLower: |
705 | 705 | return -log(0); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | private function validate(string $content, int $flags, ?string $file = null) |
137 | 137 | { |
138 | - $prevErrorHandler = set_error_handler(function ($level, $message, $file, $line) use (&$prevErrorHandler) { |
|
138 | + $prevErrorHandler = set_error_handler(function($level, $message, $file, $line) use (&$prevErrorHandler) { |
|
139 | 139 | if (\E_USER_DEPRECATED === $level) { |
140 | 140 | throw new ParseException($message, $this->getParser()->getRealCurrentLineNb() + 1); |
141 | 141 | } |
@@ -180,10 +180,10 @@ discard block |
||
180 | 180 | |
181 | 181 | foreach ($filesInfo as $info) { |
182 | 182 | if ($info['valid'] && $this->displayCorrectFiles) { |
183 | - $io->comment('<info>OK</info>'.($info['file'] ? sprintf(' in %s', $info['file']) : '')); |
|
183 | + $io->comment('<info>OK</info>' . ($info['file'] ? sprintf(' in %s', $info['file']) : '')); |
|
184 | 184 | } elseif (!$info['valid']) { |
185 | 185 | ++$erroredFiles; |
186 | - $io->text('<error> ERROR </error>'.($info['file'] ? sprintf(' in %s', $info['file']) : '')); |
|
186 | + $io->text('<error> ERROR </error>' . ($info['file'] ? sprintf(' in %s', $info['file']) : '')); |
|
187 | 187 | $io->text(sprintf('<error> >> %s</error>', $info['message'])); |
188 | 188 | |
189 | 189 | if (false !== strpos($info['message'], 'PARSE_CUSTOM_TAGS')) { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | { |
210 | 210 | $errors = 0; |
211 | 211 | |
212 | - array_walk($filesInfo, function (&$v) use (&$errors) { |
|
212 | + array_walk($filesInfo, function(&$v) use (&$errors) { |
|
213 | 213 | $v['file'] = (string) $v['file']; |
214 | 214 | if (!$v['valid']) { |
215 | 215 | ++$errors; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | |
254 | 254 | private function getDirectoryIterator(string $directory): iterable |
255 | 255 | { |
256 | - $default = function ($directory) { |
|
256 | + $default = function($directory) { |
|
257 | 257 | return new \RecursiveIteratorIterator( |
258 | 258 | new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), |
259 | 259 | \RecursiveIteratorIterator::LEAVES_ONLY |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | private function isReadable(string $fileOrDirectory): bool |
271 | 271 | { |
272 | - $default = function ($fileOrDirectory) { |
|
272 | + $default = function($fileOrDirectory) { |
|
273 | 273 | return is_readable($fileOrDirectory); |
274 | 274 | }; |
275 | 275 |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | |
182 | 182 | $sequenceIndentation = \strlen($values['leadspaces']) + 1; |
183 | 183 | $sequenceYaml = substr($this->currentLine, $sequenceIndentation); |
184 | - $sequenceYaml .= "\n".$this->getNextEmbedBlock($sequenceIndentation, true); |
|
184 | + $sequenceYaml .= "\n" . $this->getNextEmbedBlock($sequenceIndentation, true); |
|
185 | 185 | |
186 | 186 | $data[] = $this->parseBlock($currentLineNumber, rtrim($sequenceYaml), $flags); |
187 | 187 | } elseif (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) { |
@@ -196,12 +196,12 @@ discard block |
||
196 | 196 | isset($values['leadspaces']) |
197 | 197 | && ( |
198 | 198 | '!' === $values['value'][0] |
199 | - || self::preg_match('#^(?P<key>'.Inline::REGEX_QUOTED_STRING.'|[^ \'"\{\[].*?) *\:(\s+(?P<value>.+?))?\s*$#u', $this->trimTag($values['value']), $matches) |
|
199 | + || self::preg_match('#^(?P<key>' . Inline::REGEX_QUOTED_STRING . '|[^ \'"\{\[].*?) *\:(\s+(?P<value>.+?))?\s*$#u', $this->trimTag($values['value']), $matches) |
|
200 | 200 | ) |
201 | 201 | ) { |
202 | 202 | $block = $values['value']; |
203 | 203 | if ($this->isNextLineIndented() || isset($matches['value']) && '>-' === $matches['value']) { |
204 | - $block .= "\n".$this->getNextEmbedBlock($this->getCurrentLineIndentation() + \strlen($values['leadspaces']) + 1); |
|
204 | + $block .= "\n" . $this->getNextEmbedBlock($this->getCurrentLineIndentation() + \strlen($values['leadspaces']) + 1); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | $data[] = $this->parseBlock($this->getRealCurrentLineNb(), $block, $flags); |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | array_pop($this->refsBeingParsed); |
215 | 215 | } |
216 | 216 | } elseif ( |
217 | - self::preg_match('#^(?P<key>(?:![^\s]++\s++)?(?:'.Inline::REGEX_QUOTED_STRING.'|(?:!?!php/const:)?[^ \'"\[\{!].*?)) *\:(( |\t)++(?P<value>.+))?$#u', rtrim($this->currentLine), $values) |
|
217 | + self::preg_match('#^(?P<key>(?:![^\s]++\s++)?(?:' . Inline::REGEX_QUOTED_STRING . '|(?:!?!php/const:)?[^ \'"\[\{!].*?)) *\:(( |\t)++(?P<value>.+))?$#u', rtrim($this->currentLine), $values) |
|
218 | 218 | && (false === strpos($values['key'], ' #') || \in_array($values['key'][0], ['"', "'"])) |
219 | 219 | ) { |
220 | 220 | if ($context && 'sequence' == $context) { |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | } |
233 | 233 | |
234 | 234 | if (!\is_string($key) && !\is_int($key)) { |
235 | - throw new ParseException((is_numeric($key) ? 'Numeric' : 'Non-string').' keys are not supported. Quote your evaluable mapping keys instead.', $this->getRealCurrentLineNb() + 1, $this->currentLine); |
|
235 | + throw new ParseException((is_numeric($key) ? 'Numeric' : 'Non-string') . ' keys are not supported. Quote your evaluable mapping keys instead.', $this->getRealCurrentLineNb() + 1, $this->currentLine); |
|
236 | 236 | } |
237 | 237 | |
238 | 238 | // Convert float keys to strings, to avoid being converted to integers by PHP |
@@ -737,7 +737,7 @@ discard block |
||
737 | 737 | return $this->refs[$value]; |
738 | 738 | } |
739 | 739 | |
740 | - if (\in_array($value[0], ['!', '|', '>'], true) && self::preg_match('/^(?:'.self::TAG_PATTERN.' +)?'.self::BLOCK_SCALAR_HEADER_PATTERN.'$/', $value, $matches)) { |
|
740 | + if (\in_array($value[0], ['!', '|', '>'], true) && self::preg_match('/^(?:' . self::TAG_PATTERN . ' +)?' . self::BLOCK_SCALAR_HEADER_PATTERN . '$/', $value, $matches)) { |
|
741 | 741 | $modifiers = $matches['modifiers'] ?? ''; |
742 | 742 | |
743 | 743 | $data = $this->parseBlockScalar($matches['separator'], preg_replace('#\d+#', '', $modifiers), abs((int) $modifiers)); |
@@ -797,7 +797,7 @@ discard block |
||
797 | 797 | $value .= $lines[$i]; |
798 | 798 | $previousLineBlank = false; |
799 | 799 | } else { |
800 | - $value .= ' '.$lines[$i]; |
|
800 | + $value .= ' ' . $lines[$i]; |
|
801 | 801 | $previousLineBlank = false; |
802 | 802 | } |
803 | 803 | } |
@@ -900,11 +900,11 @@ discard block |
||
900 | 900 | $previousLineIndented = false; |
901 | 901 | $previousLineBlank = true; |
902 | 902 | } elseif (' ' === $blockLines[$i][0]) { |
903 | - $text .= "\n".$blockLines[$i]; |
|
903 | + $text .= "\n" . $blockLines[$i]; |
|
904 | 904 | $previousLineIndented = true; |
905 | 905 | $previousLineBlank = false; |
906 | 906 | } elseif ($previousLineIndented) { |
907 | - $text .= "\n".$blockLines[$i]; |
|
907 | + $text .= "\n" . $blockLines[$i]; |
|
908 | 908 | $previousLineIndented = false; |
909 | 909 | $previousLineBlank = false; |
910 | 910 | } elseif ($previousLineBlank || 0 === $i) { |
@@ -912,7 +912,7 @@ discard block |
||
912 | 912 | $previousLineIndented = false; |
913 | 913 | $previousLineBlank = false; |
914 | 914 | } else { |
915 | - $text .= ' '.$blockLines[$i]; |
|
915 | + $text .= ' ' . $blockLines[$i]; |
|
916 | 916 | $previousLineIndented = false; |
917 | 917 | $previousLineBlank = false; |
918 | 918 | } |
@@ -1128,7 +1128,7 @@ discard block |
||
1128 | 1128 | |
1129 | 1129 | private function getLineTag(string $value, int $flags, bool $nextLineCheck = true): ?string |
1130 | 1130 | { |
1131 | - if ('' === $value || '!' !== $value[0] || 1 !== self::preg_match('/^'.self::TAG_PATTERN.' *( +#.*)?$/', $value, $matches)) { |
|
1131 | + if ('' === $value || '!' !== $value[0] || 1 !== self::preg_match('/^' . self::TAG_PATTERN . ' *( +#.*)?$/', $value, $matches)) { |
|
1132 | 1132 | return null; |
1133 | 1133 | } |
1134 | 1134 | |
@@ -1177,7 +1177,7 @@ discard block |
||
1177 | 1177 | if ("'" === $quotation) { |
1178 | 1178 | $value .= '\\'; |
1179 | 1179 | } elseif (isset($this->currentLine[++$cursor])) { |
1180 | - $value .= '\\'.$this->currentLine[$cursor]; |
|
1180 | + $value .= '\\' . $this->currentLine[$cursor]; |
|
1181 | 1181 | } |
1182 | 1182 | |
1183 | 1183 | break; |
@@ -1189,7 +1189,7 @@ discard block |
||
1189 | 1189 | break; |
1190 | 1190 | } |
1191 | 1191 | |
1192 | - return $value.$quotation; |
|
1192 | + return $value . $quotation; |
|
1193 | 1193 | default: |
1194 | 1194 | $value .= $this->currentLine[$cursor]; |
1195 | 1195 | } |
@@ -29,21 +29,21 @@ |
||
29 | 29 | // on the input arrays. This ordering of the characters avoids the use of strtr, |
30 | 30 | // which performs more slowly. |
31 | 31 | private const ESCAPEES = ['\\', '\\\\', '\\"', '"', |
32 | - "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", |
|
33 | - "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f", |
|
34 | - "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", |
|
35 | - "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", |
|
36 | - "\x7f", |
|
37 | - "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9", |
|
38 | - ]; |
|
32 | + "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", |
|
33 | + "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f", |
|
34 | + "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", |
|
35 | + "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", |
|
36 | + "\x7f", |
|
37 | + "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9", |
|
38 | + ]; |
|
39 | 39 | private const ESCAPED = ['\\\\', '\\"', '\\\\', '\\"', |
40 | - '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a', |
|
41 | - '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f', |
|
42 | - '\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17', |
|
43 | - '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f', |
|
44 | - '\\x7f', |
|
45 | - '\\N', '\\_', '\\L', '\\P', |
|
46 | - ]; |
|
40 | + '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a', |
|
41 | + '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f', |
|
42 | + '\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17', |
|
43 | + '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f', |
|
44 | + '\\x7f', |
|
45 | + '\\N', '\\_', '\\L', '\\P', |
|
46 | + ]; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Determines if a PHP value would require double quoting in YAML. |
@@ -29,18 +29,18 @@ discard block |
||
29 | 29 | // on the input arrays. This ordering of the characters avoids the use of strtr, |
30 | 30 | // which performs more slowly. |
31 | 31 | private const ESCAPEES = ['\\', '\\\\', '\\"', '"', |
32 | - "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", |
|
33 | - "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f", |
|
34 | - "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", |
|
35 | - "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", |
|
32 | + "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", |
|
33 | + "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f", |
|
34 | + "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", |
|
35 | + "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", |
|
36 | 36 | "\x7f", |
37 | 37 | "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9", |
38 | 38 | ]; |
39 | 39 | private const ESCAPED = ['\\\\', '\\"', '\\\\', '\\"', |
40 | - '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a', |
|
41 | - '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f', |
|
40 | + '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a', |
|
41 | + '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f', |
|
42 | 42 | '\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17', |
43 | - '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f', |
|
43 | + '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f', |
|
44 | 44 | '\\x7f', |
45 | 45 | '\\N', '\\_', '\\L', '\\P', |
46 | 46 | ]; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public static function requiresDoubleQuoting(string $value): bool |
54 | 54 | { |
55 | - return 0 < preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value); |
|
55 | + return 0 < preg_match('/' . self::REGEX_CHARACTER_TO_ESCAPE . '/u', $value); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -45,12 +45,12 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function unescapeDoubleQuotedString(string $value): string |
47 | 47 | { |
48 | - $callback = function ($match) { |
|
48 | + $callback = function($match) { |
|
49 | 49 | return $this->unescapeCharacter($match[0]); |
50 | 50 | }; |
51 | 51 | |
52 | 52 | // evaluate the string |
53 | - return preg_replace_callback('/'.self::REGEX_ESCAPED_CHARACTER.'/u', $callback, $value); |
|
53 | + return preg_replace_callback('/' . self::REGEX_ESCAPED_CHARACTER . '/u', $callback, $value); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -121,12 +121,12 @@ discard block |
||
121 | 121 | return \chr($c); |
122 | 122 | } |
123 | 123 | if (0x800 > $c) { |
124 | - return \chr(0xC0 | $c >> 6).\chr(0x80 | $c & 0x3F); |
|
124 | + return \chr(0xC0 | $c >> 6) . \chr(0x80 | $c & 0x3F); |
|
125 | 125 | } |
126 | 126 | if (0x10000 > $c) { |
127 | - return \chr(0xE0 | $c >> 12).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F); |
|
127 | + return \chr(0xE0 | $c >> 12) . \chr(0x80 | $c >> 6 & 0x3F) . \chr(0x80 | $c & 0x3F); |
|
128 | 128 | } |
129 | 129 | |
130 | - return \chr(0xF0 | $c >> 18).\chr(0x80 | $c >> 12 & 0x3F).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F); |
|
130 | + return \chr(0xF0 | $c >> 18) . \chr(0x80 | $c >> 12 & 0x3F) . \chr(0x80 | $c >> 6 & 0x3F) . \chr(0x80 | $c & 0x3F); |
|
131 | 131 | } |
132 | 132 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | if ($inline <= 0 || (!\is_array($input) && !$input instanceof TaggedValue && $dumpObjectAsInlineMap) || empty($input)) { |
60 | - $output .= $prefix.Inline::dump($input, $flags); |
|
60 | + $output .= $prefix . Inline::dump($input, $flags); |
|
61 | 61 | } elseif ($input instanceof TaggedValue) { |
62 | 62 | $output .= $this->dumpTaggedValue($input, $inline, $indent, $flags, $prefix); |
63 | 63 | } else { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $blockChompingIndicator = '-'; |
80 | 80 | } |
81 | 81 | |
82 | - $output .= sprintf('%s%s%s |%s%s', $prefix, $dumpAsMap ? Inline::dump($key, $flags).':' : '-', '', $blockIndentationIndicator, $blockChompingIndicator); |
|
82 | + $output .= sprintf('%s%s%s |%s%s', $prefix, $dumpAsMap ? Inline::dump($key, $flags) . ':' : '-', '', $blockIndentationIndicator, $blockChompingIndicator); |
|
83 | 83 | |
84 | 84 | foreach (explode("\n", $value) as $row) { |
85 | 85 | if ('' === $row) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | if ($value instanceof TaggedValue) { |
96 | - $output .= sprintf('%s%s !%s', $prefix, $dumpAsMap ? Inline::dump($key, $flags).':' : '-', $value->getTag()); |
|
96 | + $output .= sprintf('%s%s !%s', $prefix, $dumpAsMap ? Inline::dump($key, $flags) . ':' : '-', $value->getTag()); |
|
97 | 97 | |
98 | 98 | if (Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $flags && \is_string($value->getValue()) && false !== strpos($value->getValue(), "\n") && false === strpos($value->getValue(), "\r\n")) { |
99 | 99 | $blockIndentationIndicator = $this->getBlockIndentationIndicator($value->getValue()); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | if ($inline - 1 <= 0 || null === $value->getValue() || \is_scalar($value->getValue())) { |
110 | - $output .= ' '.$this->dump($value->getValue(), $inline - 1, 0, $flags)."\n"; |
|
110 | + $output .= ' ' . $this->dump($value->getValue(), $inline - 1, 0, $flags) . "\n"; |
|
111 | 111 | } else { |
112 | 112 | $output .= "\n"; |
113 | 113 | $output .= $this->dump($value->getValue(), $inline - 1, $dumpAsMap ? $indent + $this->indentation : $indent + 2, $flags); |
@@ -126,10 +126,10 @@ discard block |
||
126 | 126 | |
127 | 127 | $output .= sprintf('%s%s%s%s', |
128 | 128 | $prefix, |
129 | - $dumpAsMap ? Inline::dump($key, $flags).':' : '-', |
|
129 | + $dumpAsMap ? Inline::dump($key, $flags) . ':' : '-', |
|
130 | 130 | $willBeInlined ? ' ' : "\n", |
131 | 131 | $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $flags) |
132 | - ).($willBeInlined ? "\n" : ''); |
|
132 | + ) . ($willBeInlined ? "\n" : ''); |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | private function dumpTaggedValue(TaggedValue $value, int $inline, int $indent, int $flags, string $prefix): string |
140 | 140 | { |
141 | - $output = sprintf('%s!%s', $prefix ? $prefix.' ' : '', $value->getTag()); |
|
141 | + $output = sprintf('%s!%s', $prefix ? $prefix . ' ' : '', $value->getTag()); |
|
142 | 142 | |
143 | 143 | if (Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $flags && \is_string($value->getValue()) && false !== strpos($value->getValue(), "\n") && false === strpos($value->getValue(), "\r\n")) { |
144 | 144 | $blockIndentationIndicator = $this->getBlockIndentationIndicator($value->getValue()); |
@@ -152,10 +152,10 @@ discard block |
||
152 | 152 | } |
153 | 153 | |
154 | 154 | if ($inline - 1 <= 0 || null === $value->getValue() || \is_scalar($value->getValue())) { |
155 | - return $output.' '.$this->dump($value->getValue(), $inline - 1, 0, $flags)."\n"; |
|
155 | + return $output . ' ' . $this->dump($value->getValue(), $inline - 1, 0, $flags) . "\n"; |
|
156 | 156 | } |
157 | 157 | |
158 | - return $output."\n".$this->dump($value->getValue(), $inline - 1, $indent, $flags); |
|
158 | + return $output . "\n" . $this->dump($value->getValue(), $inline - 1, $indent, $flags); |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | private function getBlockIndentationIndicator(string $value): string |