Passed
Push — master ( 90db0f...396226 )
by Jafar
03:16
created

None::verify()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * This file is part of the Guarded Authentication package.
4
 *
5
 * (c) Jafar Jabr <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Jafar\Bundle\GuardedAuthenticationBundle\Api\JWTSigner\Signer\OpenSSL;
12
13
use Jafar\Bundle\GuardedAuthenticationBundle\Api\JWTSigner\Signer\SignerInterface;
14
15
/**
16
 * Class None.
17
 *
18
 * @author Jafar Jabr <[email protected]>
19
 */
20
class None implements SignerInterface
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function sign($input, $key)
26
    {
27
        return '';
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function verify($key, $signature, $input)
34
    {
35
        return '' === $signature;
36
    }
37
}
38