Passed
Push — main ( f82312...487838 )
by Miaad
10:48 queued 13s
created
src/receiver/callback.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,18 +9,18 @@  discard block
 block discarded – undo
9 9
 use BPT\tools\tools;
10 10
 
11 11
 class callback {
12
-    public static function encodeData (array $data): string {
12
+    public static function encodeData(array $data): string {
13 13
         return tools::codec(codecAction::ENCRYPT, json_encode($data), md5(settings::$token), 'SguQgUvvKRLvmCyq')['hash'];
14 14
     }
15 15
 
16
-    public static function decodeData (string $data): array {
16
+    public static function decodeData(string $data): array {
17 17
         return json_decode(tools::codec(codecAction::DECRYPT, $data, md5(settings::$token), 'SguQgUvvKRLvmCyq'), true);
18 18
     }
19 19
 
20 20
     /**
21 21
      * @internal Only for BPT self usage , Don't use it in your source!
22 22
      */
23
-    public static function process () {
23
+    public static function process() {
24 24
         if (!settings::$handler || settings::$receiver != \BPT\constants\receiver::WEBHOOK || settings::$multi || !(isset($_GET['data']) || isset($_POST['data']))) {
25 25
             return false;
26 26
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @internal Only for BPT self usage , Don't use it in your source!
47 47
      */
48
-    public static function callHandler (string $handler_name, $input) {
48
+    public static function callHandler(string $handler_name, $input) {
49 49
         if (method_exists(BPT::$handler, $handler_name)) {
50 50
             BPT::$handler->$handler_name($input);
51 51
         }
Please login to merge, or discard this patch.
src/BPT.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -299,13 +299,13 @@  discard block
 block discarded – undo
299 299
  * @method gameHighScore[]|responseError getGameHighScores (int|array|null $user_id = null, int|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of GameHighScore objects.
300 300
  * @method gameHighScore[]|responseError getGameHigh (int|array|null $user_id = null, int|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of GameHighScore objects.
301 301
  */
302
-class BPT extends telegram{
303
-    public static stdClass|update $update;
302
+class BPT extends telegram {
303
+    public static stdClass | update $update;
304 304
 
305 305
     public static BPT $handler;
306 306
 
307 307
 
308
-    public function __construct (array|easySettings $settings) {
308
+    public function __construct(array | easySettings $settings) {
309 309
         static::$handler = &$this;
310 310
         settings::init($settings);
311 311
     }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     }
316 316
 
317 317
     #[NoReturn]
318
-    public static function exit (string|null $message = null): void {
318
+    public static function exit (string | null $message = null): void {
319 319
         die($message ?? "<div style='width:98vw;height:98vh;display:flex;justify-content:center;align-items:center;font-size:25vw'>BPT</div>");
320 320
     }
321 321
 }
Please login to merge, or discard this patch.