IssuedAt   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 1
dl 0
loc 20
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
1
<?php
2
3
namespace Tymon\JWTAuth\Claims;
4
5
class IssuedAt extends Claim
6
{
7
    /**
8
     * The claim name
9
     *
10
     * @var string
11
     */
12
    protected $name = 'iat';
13
14
    /**
15
     * Validate the issued at claim
16
     *
17
     * @param  mixed  $value
18
     * @return boolean
19
     */
20 66
    protected function validate($value)
21
    {
22 66
        return is_numeric($value);
23
    }
24
}
25