RobDWaller / ReallySimpleJWT
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
    /**
Files Complexity Coverage
src 127 100.00%
Project Totals (13 files) 127 100.00%
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.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading