Code Duplication    Length = 12-12 lines in 2 locations

test/performance/Ecdsa/EcdsaBench.php 1 location

@@ 9-20 (lines=12) @@
6
use Lcobucci\JWT\Signer\Key;
7
use Lcobucci\JWT\SignerBench;
8
9
abstract class EcdsaBench extends SignerBench
10
{
11
    protected function signingKey(): Key
12
    {
13
        return new Key('file://' . __DIR__ . '/private.key');
14
    }
15
16
    protected function verificationKey(): Key
17
    {
18
        return new Key('file://' . __DIR__ . '/public.key');
19
    }
20
}
21

test/performance/Rsa/RsaBench.php 1 location

@@ 9-20 (lines=12) @@
6
use Lcobucci\JWT\Signer\Key;
7
use Lcobucci\JWT\SignerBench;
8
9
abstract class RsaBench extends SignerBench
10
{
11
    protected function signingKey(): Key
12
    {
13
        return new Key('file://' . __DIR__ . '/private.key');
14
    }
15
16
    protected function verificationKey(): Key
17
    {
18
        return new Key('file://' . __DIR__ . '/public.key');
19
    }
20
}
21