None   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A sign() 0 4 1
A verify() 0 4 1
A name() 0 4 1
1
<?php
2
3
namespace Zenstruck\JWT\Signer;
4
5
use Zenstruck\JWT\Signer;
6
7
/**
8
 * @author Alessandro Nadalin <[email protected]>
9
 * @author Kevin Bond <[email protected]>
10
 */
11
final class None implements Signer
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16 10
    public function sign($input, $key)
17
    {
18 10
        return '';
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 1
    public function verify($input, $signature, $key)
25
    {
26 1
        return true;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32 11
    public function name()
33
    {
34 11
        return 'NONE';
35
    }
36
}
37