loadSandboxCredentials()   A
last analyzed

Complexity

Conditions 2
Paths 3

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 2
eloc 7
c 2
b 1
f 0
nc 3
nop 0
dl 0
loc 10
rs 10
1
<?php
2
3
use Dotenv\Dotenv;
4
5
include __DIR__.'/vendor/autoload.php';
6
7
function loadSandboxCredentials()
8
{
9
    try {
10
        $dotEnv = new Dotenv(__DIR__);
11
        $dotEnv->load();
12
    } catch (Exception $_) {}
0 ignored issues
show
Coding Style Comprehensibility introduced by
Consider adding a comment why this CATCH block is empty.
Loading history...
13
14
    define('SANDBOX_DATA_PROVIDER_ID', (int)getenv('SANDBOX_DATA_PROVIDER_ID'));
15
    define('SANDBOX_USERNAME', getenv('SANDBOX_USERNAME'));
16
    define('SANDBOX_PASSWORD', getenv('SANDBOX_PASSWORD'));
17
}
18
19
loadSandboxCredentials();
20