Nicolas CARPi
194ecc28eb
remove insecure rng providers and remove polyfill for hash_equals ( #122 )
...
* remove insecure rng providers
and remove the openssl provider. We now rely exclusively on
random_bytes(), as there are no reasons not to. Fix #121
* remove the isSecure property of the test rng class
* remove pointless test rng class
we were testing a test class, which didn't make a lot of sense.
* Revert "remove pointless test rng class"
This reverts commit f6da6bee6d .
* Reapply "remove pointless test rng class"
This reverts commit 06220d4a54 .
* assing rng provider to class attribute
this also aligns with other providers
* remove polyfill for hash_equals
2024-04-16 16:52:51 +01:00
Nicolas CARPi
323053bd52
delete files specific to code editors ( #120 )
...
* delete files specific to code editors
* remove TwoFactorAuth.phpproj
* remove TwoFactorAuth.sln
They are not used anymore. See https://github.com/RobThree/TwoFactorAuth/pull/119#issuecomment-2057777036
* remove deleted files from excluded files in composer.json
2024-04-16 14:44:25 +01:00
Your Name
086a3758ec
Exclude useless files from dist archive #103
...
Co-authored-by: Cédric Anne <cedric.anne@gmail.com >
2024-04-15 21:23:58 +01:00
Will Power
ab93dd41ce
Merge pull request #115 from Mattie112/endroidqr-v5
...
Fix issue #114 (Support for EndroidQR v5)
v2.1.0
2023-11-14 12:50:27 +00:00
William Hall
ec35073c06
🔧 test all endroid versions we can care about
2023-11-14 12:49:15 +00:00
Matthijs van Schooten
13a56018f4
Fixed typo
2023-11-10 13:43:28 +01:00
Matthijs van Schooten
4b6b0601b7
Fixed check ordering
2023-11-10 13:41:25 +01:00
Matthijs van Schooten
126afe4c25
Removed dependency again from composer
2023-11-10 13:32:44 +01:00
Matthijs van Schooten
63f6259db2
Added support for EndroidQR v5
2023-11-10 13:27:45 +01:00
William Hall
137df4dd3c
🔧 remove deprecated rule https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7066
2023-07-29 15:46:20 +01:00
Will Power
9476751d6b
Merge pull request #110 from modelrailroader/patch-1
...
Fix docs: Construct new TwoFactorAuth-class
2023-07-29 15:36:31 +01:00
Jan
0565d63e6a
fix: better understanding for QrCodeProvider class
2023-06-23 21:21:37 +02:00
Jan
d5aa22a96f
fix: hyperlinks for new file extensions
2023-06-23 17:56:25 +02:00
Jan
a6f7735b9f
fix: docs for new PHP Version
2023-06-23 17:54:58 +02:00
Jan
6416e79c3e
fix: fixed typing
2023-06-11 12:22:26 +02:00
Jan
83611592db
fix: fixed documentation
2023-06-11 12:20:59 +02:00
Jan
dd0ecaeed1
Fix: Changes for > PHP 8
2023-06-08 16:56:08 +02:00
Jan
241dfec585
fix: fixed docs
2023-06-05 16:09:42 +02:00
Rob Janssen
63b49ce25c
Merge pull request #108 from xHeaven/master
...
code improvements, readability enhancements, type safety, modern syntax adaptation
2023-06-04 01:03:17 +02:00
Mark Magyar
e554a9b5e4
change all $qrtext to camelCase version
2023-05-28 19:47:10 +02:00
Mark Magyar
9bc454f425
use null coalescing assignment instead of just null coalescing
2023-05-28 18:58:39 +02:00
Mark Magyar
c2183e16b3
use property promotion for options
2023-05-28 18:46:07 +02:00
Mark Magyar
cf84371dad
use http_build_query instead of sprintf to improve readability
2023-05-28 01:58:44 +02:00
Mark Magyar
4d91d6ae27
use sprintf instead of concatenating
2023-05-28 01:13:12 +02:00
Mark Magyar
d60113a77a
drop setAccessible calls as they its NOOP since PHP 8.1
2023-05-27 22:02:24 +02:00
Mark Magyar
3f3327e2a1
use type safe assertions
2023-05-27 22:01:34 +02:00
Mark Magyar
8bf962ecee
add readonly identifier
2023-05-27 22:00:48 +02:00
Mark Magyar
b80431341e
remove pointless +0
2023-05-27 22:00:11 +02:00
Mark Magyar
f542788673
fix formatting
2023-05-27 21:59:55 +02:00
Mark Magyar
ab51d16de7
remove redundant assignment, use shorthard for nullable type
2023-05-27 21:43:04 +02:00
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
2fd60fad5e
use type safe asserts
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