Commit Graph

56 Commits

Author SHA1 Message Date
smiley 490cc43b47 🛀 too many static calls in here 2025-11-14 21:01:37 +01:00
Einar Gangsø 03e84852b4 Do not use AlphaNum when string contains comma
Using dash in this context will create a range between `+` and `.` which allows the following characters: `+`, `,`, `-`, `.`. 

The ASCII range is as follow: + (43), , (44), - (45), . (46).

Comma is not supported and will then crash in `write()`.
2025-09-19 10:41:26 +02:00
smiley bf34b46c57 :octocat: reintroducing phan because phpstan keeps making trouble 2025-07-19 23:29:41 +02:00
smiley f822e807d7 :octocat: regex fix (#282) 2024-10-16 10:22:02 +02:00
smiley 9964cf8ff1 :octocat: i hate this less (might be slightly slower tho) 2024-09-24 17:02:14 +02:00
smiley 7b1d9617d3 :octocat: declare strict types 2024-07-21 15:55:05 +02:00
smiley f32696c8a7 :octocat: fix PHPCS config, add Slevomat rules 2024-07-21 14:54:15 +02:00
smiley 89cdd09044 :octocat: switch phan for phpstan (see #277) 2024-07-21 05:25:26 +02:00
smiley 00800ef901 🛀 clean-up (again) 2023-11-27 22:53:38 +01:00
smiley 39e3dfe83b 🔥 v6.0 first pass: PHP 8.2, remove deprecated elements, add type hints 2023-11-25 12:49:56 +01:00
smiley 5a280c8107 🚿 clean up some (int) casts 2023-07-12 21:23:43 +02:00
smiley 3e0a4655aa :octocat: use a proper constant for data mode 2023-03-16 11:20:33 +01:00
smiley 9977c51180 :octocat: let QRDataModeInterface::write() return $this 2023-03-13 15:14:59 +01:00
smiley 8e72bc6521 💄 2023-03-11 03:31:22 +01:00
smiley c03aafcf18 🔧 PHP 8.2 str_split() fix 2022-10-05 20:16:47 +02:00
smiley 9db842d6ca :octocat: +several coverage tests & cleanup 2022-07-26 17:15:49 +02:00
smiley fd3709d1bb :octocat: shortcut for Mode::getLengthBitsForVersion() 2022-07-25 20:04:21 +02:00
codemasher cdd8aea40a 🚿 force int because PHP8.1 hates this 2021-12-13 00:00:17 +01:00
codemasher 48b6c21090 🛀 QRDataModeInterface: validate data on init, test cleanup 2021-11-28 18:25:06 +01:00
codemasher 9fde82f9c2 🚿 remove DATA_* prefix from Mode::* constants 2021-11-26 23:09:56 +01:00
codemasher 153603a5dc 🛀 more docblock cleanup & micro optimizations 2021-11-21 11:41:40 +01:00
codemasher d1936de3ba :octocat: change visibility in final classes to private 2021-06-05 18:19:55 +02:00
codemasher 93618e83ff :octocat: removed filesource and package phpdoc tags 2021-01-24 22:52:33 +01:00
codemasher 22f1672fac :octocat: +data mode decodeSegment() (WIP) 2021-01-23 04:10:37 +01:00
codemasher c06e3f1cd6 :octocat: make datamode field static 2021-01-23 01:26:11 +01:00
codemasher 37d4b9faad :octocat: move BitBuffer to Common 2021-01-16 19:52:12 +01:00
codemasher 0f50b90b96 🚿 clarify param name 2021-01-10 09:14:48 +01:00
codemasher 37a40571e6 🛀 extract Mode 2020-11-21 21:52:19 +01:00
codemasher 8bd573ddfd 🛀 data mode rework 2020-11-21 18:40:53 +01:00
codemasher 9f5d0bc060 🛀 data mode rework 2020-11-21 02:43:14 +01:00
codemasher 743ed22fa2 ✨ docblocks galore! 2020-04-04 03:46:34 +02:00
codemasher 2f337fe43d 🚿 fewer function calls for numeric and alphanum table checks 2020-04-01 00:51:46 +02:00
codemasher 0a0a145b1c :octocat: +final 2020-03-31 03:01:07 +02:00
codemasher 96cfff1e9e 🚿 consistency: renamed constants QRDataInterface::*_CHAR_MAP -> CHAR_MAP_* 2020-03-31 01:29:08 +02:00
codemasher 76afbbb70d Merge branch 'master' into php-7.4
# Conflicts:
#	composer.json
#	src/Output/QROutputAbstract.php
#	src/QROptionsTrait.php
2019-08-09 21:47:27 +02:00
codemasher ab7a11f225 🚿 sprintf'd some things 2019-08-09 21:14:00 +02:00
codemasher 42244afdda :octocat: use function (could've done that before...) 2019-08-09 20:18:46 +02:00
codemasher 8c6b3f64a7 🔥 removed superfluous "param" and "return" from docblocks 2019-07-31 02:11:29 +02:00
codemasher edf885823d ✨ typed properties! 2019-07-31 01:31:33 +02:00
codemasher eff04f3f9b :octocat: +backslashes for built-in functions 2019-03-15 12:25:05 +01:00
codemasher cdde12f89c :octocat: forgot about these... 💄 2018-10-01 13:36:56 +02:00
codemasher 2aee933b1e 💄 2018-09-19 20:35:16 +02:00
smiley e4ed56e0e7 :octocat: self -> $this 2017-12-24 18:12:18 +01:00
smiley 88f800c50b ✨ 2017-11-24 03:02:00 +01:00
smiley 7ea7b3c85a ✨ 2017-11-23 02:28:42 +01:00
smiley c5283fb1fa :octocat: refactor/remove QRConst::class 2017-10-24 16:32:28 +02:00
smiley f66213f24e added PHP7 scalar type hints, cleanup 2017-02-10 22:23:29 +01:00
smiley 2c2f4b8bec refactoring 2016-03-21 00:00:52 +01:00
smiley 818c15d3fe using the correct exception now 2016-02-08 20:55:07 +01:00
smiley a70bc50436 refactoring 2016-02-08 14:39:58 +01:00