RobDWaller / ReallySimpleJWT

Compare a292f6e ... +5 ... 2b92aba

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 4 files from the diff.
Other files ignored by Codecov

@@ -26,8 +26,8 @@
Loading
26 26
27 27
    /**
28 28
     * Check the validity of the JWT's expiration claim as defined in the
29 -
     * token payload. Returns false if the expiration time has surpassed the
30 -
     * current time.
29 +
     * token payload. Returns false if the current time has surpassed the
30 +
     * expiration time. Time = 100 and Expiration = 99 token has expired.
31 31
     */
32 32
    public function expiration(int $expiration): bool
33 33
    {
@@ -36,12 +36,12 @@
Loading
36 36
37 37
    /**
38 38
     * Check the validity of the JWT's not before claim as defined in the
39 -
     * token payload. Returns false if the not before time has not surpassed
40 -
     * the current time.
39 +
     * token payload. Returns false if the current time has not surpassed
40 +
     * the not before time. Time = 100 and NotBefore = 101 token is not usable.
41 41
     */
42 42
    public function notBefore(int $notBefore): bool
43 43
    {
44 -
        return $notBefore < time();
44 +
        return $notBefore <= time();
45 45
    }
46 46
47 47
    /**

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Complexity Coverage
src ø 100.00%
Project Totals (13 files) 127 100.00%
Loading