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

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot 2023-04-18 19:11:39 +00:00
parent 8a69e9af2d
commit afcf8e8928
No known key found for this signature in database
GPG Key ID: E4A5316DFBB23575

View File

@ -272,7 +272,7 @@ final class Main
&& !self::isBad($_REQUEST['error'], (int) $_REQUEST['code'])
&& !($_REQUEST['error'] === 'Timeout' && !\in_array(\strtolower($_REQUEST['method']), ['messages.getbotcallbackanswer', 'messages.getinlinebotresults']))
&& !($_REQUEST['error'] === 'BOT_MISSING' && \in_array($_REQUEST['method'], ['stickers.changeStickerPosition', 'stickers.createStickerSet', 'messages.uploadMedia']))
) {
) {
$error = self::sanitize($_REQUEST['error']);
$method = $_REQUEST['method'];
$code = $_REQUEST['code'];