1
0
mirror of https://github.com/danog/telerpc.git synced 2024-11-26 20:14:48 +01:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot 2022-02-23 10:46:05 +00:00
parent 7fe5a9a79c
commit 1a50664929
No known key found for this signature in database
GPG Key ID: EEAFB12C3E6BC249

View File

@ -277,7 +277,7 @@ try {
$res = $pdo->prepare('REPLACE INTO code_errors VALUES (?);')->execute([$_REQUEST['code']]); $res = $pdo->prepare('REPLACE INTO code_errors VALUES (?);')->execute([$_REQUEST['code']]);
} elseif (in_array($_REQUEST['error'], ['RPC_CALL_FAIL', 'RPC_MCGET_FAIL', 'INTERDC_5_CALL_ERROR', 'INTERDC_4_CALL_ERROR', 'INTERDC_3_CALL_ERROR', 'INTERDC_2_CALL_ERROR', 'INTERDC_1_CALL_ERROR', 'INTERDC_5_CALL_RICH_ERROR', 'INTERDC_4_CALL_RICH_ERROR', 'INTERDC_3_CALL_RICH_ERROR', 'INTERDC_2_CALL_RICH_ERROR', 'INTERDC_1_CALL_RICH_ERROR'])) { } elseif (in_array($_REQUEST['error'], ['RPC_CALL_FAIL', 'RPC_MCGET_FAIL', 'INTERDC_5_CALL_ERROR', 'INTERDC_4_CALL_ERROR', 'INTERDC_3_CALL_ERROR', 'INTERDC_2_CALL_ERROR', 'INTERDC_1_CALL_ERROR', 'INTERDC_5_CALL_RICH_ERROR', 'INTERDC_4_CALL_RICH_ERROR', 'INTERDC_3_CALL_RICH_ERROR', 'INTERDC_2_CALL_RICH_ERROR', 'INTERDC_1_CALL_RICH_ERROR'])) {
$res = true; $res = true;
//$res = $pdo->prepare('INSERT INTO rip VALUES (FROM_UNIXTIME(?));')->execute([time()]); //$res = $pdo->prepare('INSERT INTO rip VALUES (FROM_UNIXTIME(?));')->execute([time()]);
} elseif (in_array($_REQUEST['error'], ['BOT_METHOD_INVALID'])) { } elseif (in_array($_REQUEST['error'], ['BOT_METHOD_INVALID'])) {
if (is_numeric($_REQUEST['method'])) { if (is_numeric($_REQUEST['method'])) {
require 'vendor/autoload.php'; require 'vendor/autoload.php';