Passed
Push — main ( ccd8f9...b2c2ea )
by Miaad
01:47
created

pay::init()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 4
c 1
b 0
f 0
nc 3
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
namespace BPT\pay;
4
5
use BPT\settings;
6
7
class pay {
8
    public static function init (): void {
9
        if (!empty(settings::$pay)) {
10
            if (!isset(settings::$pay['crypto'])) {
11
                return;
12
            }
13
            crypto::init();
14
        }
15
    }
16
}