Removed none from the validate algorithm method.
Showing 1 of 2 files from the diff.
src/Validate.php
changed.
Other files ignored by Codecov
tests/ValidateTest.php
has changed.
@@ -89,12 +89,11 @@
Loading
89 | 89 | ||
90 | 90 | /** |
|
91 | 91 | * Check the alg claim is in the list of valid algorithms. These are the |
|
92 | - | * valid digital signatures, MAC algorithms or "none" as |
|
93 | - | * defined in RFC 7518. |
|
92 | + | * valid digital signatures, MAC algorithms as defined in RFC 7518. |
|
94 | 93 | */ |
|
95 | 94 | public function algorithm(string $algorithm, array $additional): bool |
|
96 | 95 | { |
|
97 | - | $base = ["none", "HS256"]; |
|
96 | + | $base = ["HS256"]; |
|
98 | 97 | ||
99 | 98 | return in_array($algorithm, array_merge($base, $additional)); |
|
100 | 99 | } |
Files | Complexity | Coverage |
---|---|---|
src | 110 | 100.00% |
Project Totals (9 files) | 110 | 100.00% |
310908672
310908651
310908672
310908651
310908664
308085530
308085530
310908649
308085530
310908672
310908651
310908664
310908649
310908664
310908649
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.