Completed
Push — master ( a70ca1...835655 )
by Jafar
06:00
created

RSA   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSupportedPrivateKeyType() 0 3 2
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
namespace Jafar\Bundle\GuardedAuthenticationBundle\Api\JWTSigner\Signer\OpenSSL;
11
12
/**
13
 * Class RSA.
14
 *
15
 * @author Jafar Jabr <[email protected]>
16
 */
17
abstract class RSA extends PublicKey
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    protected function getSupportedPrivateKeyType()
23
    {
24
        return defined('OPENSSL_KEYTYPE_RSA') ? OPENSSL_KEYTYPE_RSA : false;
0 ignored issues
show
Bug Best Practice introduced by
The expression return defined('OPENSSL_...SSL_KEYTYPE_RSA : false also could return the type false which is incompatible with the return type mandated by Jafar\Bundle\GuardedAuth...pportedPrivateKeyType() of string.
Loading history...
25
    }
26
}
27