| Total Complexity | 6 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class multi extends webhook { |
||
| 14 | /** |
||
| 15 | * @internal Only for BPT self usage , Don't use it in your source! |
||
| 16 | */ |
||
| 17 | public static function init() { |
||
| 18 | if (lock::exist('BPT-MULTI-EXEC')) { |
||
| 19 | self::setUpdate(exec::init()); |
||
| 20 | } |
||
| 21 | elseif(lock::exist('BPT-MULTI-CURL')) { |
||
| 22 | self::setUpdate(curl::init()); |
||
| 23 | } |
||
| 24 | else { |
||
| 25 | self::deleteOldLocks(); |
||
| 26 | self::checkURL(); |
||
| 27 | self::setCertificate(); |
||
| 28 | exec::support() ? exec::install() : curl::install(); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | private static function setUpdate(string $update) { |
||
| 35 | } |
||
| 36 | |||
| 37 | private static function deleteOldLocks() { |
||
| 39 | } |
||
| 40 | } |