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

pay   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 6 3
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
}