Completed
Push — master ( 0e82da...cafa4f )
by Giacomo "Mr. Wolf"
02:53 queued 43s
created

loadSandboxCredentials()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 1
b 1
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
use Dotenv\Dotenv;
4
5
include __DIR__.'/vendor/autoload.php';
6
7
function loadSandboxCredentials()
8
{
9
    $dotEnv = new Dotenv(__DIR__);
10
    $dotEnv->load();
11
12
    define('SANDBOX_DATA_PROVIDER_ID', (int)getenv('SANDBOX_DATA_PROVIDER_ID'));
13
    define('SANDBOX_USERNAME', getenv('SANDBOX_USERNAME'));
14
    define('SANDBOX_PASSWORD', getenv('SANDBOX_PASSWORD'));
15
}
16
17
loadSandboxCredentials();
18