Completed
Push — master ( cf00e0...a6178b )
by Frederik
02:20
created

CryptoConstant::getDefaultProtocol()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Genkgo\Mail\Protocol;
5
6
/**
7
 * Class CryptoConstant
8
 * @package Genkgo\Mail\Protocol
9
 */
10
final class CryptoConstant
11
{
12
    /**
13
     * This might be changed after https://github.com/php/php-src/pull/2518
14
     *
15
     * @param string $phpVersion
16
     * @return int
17
     */
18 14
    public static function getDefaultMethod(string $phpVersion)
0 ignored issues
show
Unused Code introduced by
The parameter $phpVersion is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
19
    {
20 14
        return STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
21
    }
22
}