EnvironmentVariableNotAllowedException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
namespace rhertogh\Yii2Oauth2Server\helpers\exceptions;
4
5
class EnvironmentVariableNotAllowedException extends BaseEnvironmentVariableException
6
{
7
    public function __construct($variable, $message = null, $code = 0, \Throwable $previous = null)
8
    {
9
        if ($message === null) {
10
            $message = 'Usage of environment variable "' . $variable . '" is not allowed.';
11
        }
12
        parent::__construct($variable, $message, $code, $previous);
13
    }
14
}
15