EncryptionConfigurationException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A undeterminedEncryption() 0 8 1
1
<?php
2
3
namespace Stevenmaguire\OAuth2\Client\Provider\Exception;
4
5
use Exception;
6
7
class EncryptionConfigurationException extends Exception
8
{
9
    /**
10
     * Returns properly formatted exception when response decryption fails.
11
     *
12
     * @return \Stevenmaguire\OAuth2\Client\Provider\Exception\EncryptionConfigurationException
13
     */
14 2
    public static function undeterminedEncryption()
15
    {
16 2
        return new static(
17
            'The given response may be encrypted and sufficient '.
18 2
            'encryption configuration has not been provided.',
19 1
            400
20 1
        );
21
    }
22
}
23