Passed
Push — master ( 02bea5...62dfbf )
by Rutger
03:04
created

__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
cc 2
nc 2
nop 4
crap 6
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
        if ($message === null) {
9
            $message = 'Usage of environment variable "' . $variable . '" is not allowed.';
10
        }
11
        parent::__construct($variable, $message, $code, $previous);
12
    }
13
}
14