| Total Complexity | 8 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class multi extends webhook {
|
||
| 12 | public static function init() {
|
||
| 13 | if (lock::exist('BPT-MULTI-EXEC')) {
|
||
| 14 | self::setUpdate(exec::init()); |
||
| 15 | } |
||
| 16 | elseif(lock::exist('BPT-MULTI-CURL')) {
|
||
| 17 | self::setUpdate(curl::init()); |
||
| 18 | } |
||
| 19 | else {
|
||
| 20 | self::deleteOldLocks(); |
||
| 21 | self::checkURL(); |
||
| 22 | self::setCertificate(); |
||
| 23 | exec::support() ? exec::install() : curl::install(); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | private static function setUpdate(string $update) {
|
||
| 30 | } |
||
| 31 | |||
| 32 | private static function deleteOldLocks() {
|
||
| 40 | } |