Mark Magyar
d4f6aa1ee6
add missing @throws tag
2023-05-27 21:41:10 +02:00
Mark Magyar
04ff3e7e3f
fix nullable return type hint
2023-05-27 21:37:44 +02:00
Mark Magyar
d94ee9c769
remove useless @throws because it never throws
2023-05-27 21:36:04 +02:00
Mark Magyar
955ce522f0
add readonly modifiers wherever possible
2023-05-27 21:33:54 +02:00
Mark Magyar
e584f0c56a
remove unnecessary type casts
2023-05-27 21:30:29 +02:00
Mark Magyar
5949a29b89
use null coalescing operator instead of if checks
2023-05-27 21:29:57 +02:00
Mark Magyar
8bf8800523
use empty string comparison instead of strlen call
2023-05-27 21:29:57 +02:00
Mark Magyar
26413e69f0
extract strlen check from loop
2023-05-27 21:29:57 +02:00
Mark Magyar
3adb3e54e5
add missing delimiter for proper escaping
2023-05-27 21:29:57 +02:00
Mark Magyar
c45f7a23c9
fix return types for v3, replace switch with match
2023-05-27 21:29:57 +02:00
Mark Magyar
bdfa67d1f6
use static keyword for anonymous function definition
2023-05-27 21:29:57 +02:00
Mark Magyar
7675282f45
put scalar types to the right
2023-05-27 21:29:57 +02:00
Mark Magyar
1ca305ec4a
use spread syntax instead of array_merge
2023-05-27 21:29:57 +02:00
Mark Magyar
aadc32e85e
make parameter explicitly nullable
2023-05-27 21:29:57 +02:00
Mark Magyar
9a1aeb8c1f
fix formatting
2023-05-27 20:19:48 +02:00
Mark Magyar
4c8a88224a
replace switch with match
2023-05-27 20:14:33 +02:00
Mark Magyar
9523b35d34
use strict comparison
2023-05-27 20:06:37 +02:00
Mark Magyar
cc9400d901
fix possible typo in parameter name
...
Interface's method signature:
```php
public function getQRCodeImage(string $qrtext, int $size): string;
```
2023-05-27 20:05:58 +02:00
Mark Magyar
dfb5c1a113
make $borderWidth readonly
2023-05-27 20:04:08 +02:00
Nicolas CARPi
30248a8fb5
address remarks made by MasterOdin
2023-02-22 18:08:19 +01:00
Nicolas CARPi
86338cf3cd
split constructor in multilines
2022-12-29 13:47:06 +01:00
Nicolas CARPi
656e966cdf
remove useless function comment
2022-12-29 13:43:52 +01:00
Nicolas CARPi
921425d0ff
use psr12 in phpcs config
2022-12-29 13:35:16 +01:00
Nicolas CARPi
4711674ec0
crank phpstan to level 6
2022-12-29 13:32:02 +01:00
Nicolas CARPi
f034bc782e
use interface
2022-12-09 19:45:53 +01:00
Nicolas CARPi
f8ba3b234b
fix endroid qr provider handleErrorCorrectionLevel signature
2022-12-09 19:42:16 +01:00
Nicolas CARPi
db6256b5e8
fix endroid handleColor
2022-12-09 19:37:49 +01:00
Nicolas CARPi
041d0e38e2
fix bacon construct signature
2022-12-09 19:36:47 +01:00
Nicolas CARPi
1e75674a45
fix action php version and handleColour function signature for bacon qr
2022-12-09 19:32:27 +01:00
Nicolas CARPi
25f463d19b
turns out I had a global gitignore with lib... -_-'
2022-12-09 19:27:50 +01:00
Nicolas CARPi
ac721e57b9
add php-cs-fixer
2022-12-07 23:10:13 +01:00
Nicolas CARPi
a8c297c178
second batch with QR providers
2022-12-07 23:02:41 +01:00
Nicolas CARPi
aeb4b00c60
first batch
2022-12-07 22:28:52 +01:00
Matthew Peveler
5f2611cde2
Fix compatibility with endroid/qr-code 4
2022-02-14 11:09:10 -05:00
William Hall
2d1ec8d265
🐛 be more specific with hex colour handling
2021-12-19 19:44:10 +00:00
William Hall
66e1e030ba
♻️ re arrange useful testing code for provider tests
2021-12-19 19:32:45 +00:00
Roland Eigelsreiter
0096cce02d
convert issuer to string prevents php 8.1 errors
...
By forcing $this->issuer to be string, even if null is set, it prevents throwing errors in PHP 8.1 is `rawurlencode` is not allowed to have null as parameter.
It would be better to force string to be already in `__construct`, but this may create a breaking change for existing users.
2021-11-29 06:50:54 +01:00
Milan
65b17bca59
Add encoding option in query to google API
2021-10-17 21:21:54 +03:00
Milan
c01202bc10
Make verifySSL argument as first option in constructor
2021-10-17 21:08:32 +03:00
fman42
0453a94349
Made verifySSL optional
2021-10-04 15:01:04 +03:00
fman42
49f681e905
Rename a class
2021-10-04 15:00:06 +03:00
Milan
08846488cc
Implemented new ChartGoogleQrCodeProvider
2021-10-03 19:14:10 +03:00
William Hall
38f349fccd
Merge remote-tracking branch 'igorsantos/qr-logos'
2021-03-09 18:09:38 +00:00
William Hall
33a32cb099
📚 doc blocks
2021-03-08 18:24:44 +00:00
William Hall
58d3354367
🐛 correct some minor issues
2021-03-08 18:20:07 +00:00
William Hall
2aa6f46e20
🎨 fix the majority of code sniffs
2021-02-08 17:28:05 +00:00
William Hall
df74a59b43
🐛 fix unthrowable exception
2021-02-05 16:30:19 +00:00
Igor Santos
cc2ae19bcd
Document the need for the code to be a string
2021-01-25 02:32:41 -03:00
Igor Santos
c3f3c0a849
Move logo implementation to its own class
2021-01-24 00:41:46 -03:00
Igor Santos
2060811d88
Add logo option to Endroid's provider
...
closes #56
2021-01-23 23:58:22 -03:00