Passed
Push — main ( 1e0eff...d761d2 )
by Miaad
01:42
created
src/receiver/multi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         if (lock::exist('BPT-MULTI-EXEC')) {
14 14
             self::setUpdate(exec::init());
15 15
         }
16
-        elseif(lock::exist('BPT-MULTI-CURL')) {
16
+        elseif (lock::exist('BPT-MULTI-CURL')) {
17 17
             self::setUpdate(curl::init());
18 18
         }
19 19
         else {
Please login to merge, or discard this patch.
src/tools/file.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return string|int|false string for formatted data , int for normal data , false when size can not be found(file not found or ...)
28 28
      */
29
-    public static function size (string $path, bool $format = true): string|int|false {
29
+    public static function size(string $path, bool $format = true): string | int | false {
30 30
         if (filter_var($path, FILTER_VALIDATE_URL)) {
31 31
             $ch = curl_init($path);
32 32
             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @return bool
59 59
      * @throws bptException
60 60
      */
61
-    public static function delete (string $path, bool $sub = true): bool {
61
+    public static function delete(string $path, bool $sub = true): bool {
62 62
         if (is_dir($path)) {
63 63
             if (count(scandir($path)) > 2) {
64 64
                 if ($sub) {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     return rmdir($path);
71 71
                 }
72 72
                 else {
73
-                    logger::write("tools::delete function used\ndelete function cannot delete folder because its have subFiles and sub parameter haven't true value",loggerTypes::ERROR);
73
+                    logger::write("tools::delete function used\ndelete function cannot delete folder because its have subFiles and sub parameter haven't true value", loggerTypes::ERROR);
74 74
                     throw new bptException('DELETE_FOLDER_HAS_SUB');
75 75
                 }
76 76
             }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @return bool
91 91
      * @throws bptException when zip extension not found
92 92
      */
93
-    public static function zip (string $path, string $destination): bool {
93
+    public static function zip(string $path, string $destination): bool {
94 94
         if (extension_loaded('zip')) {
95 95
             $rootPath = realpath($path);
96 96
             $zip = new ZipArchive();
Please login to merge, or discard this patch.
src/exception/bptException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
 /**
8 8
  * Exceptions created by BPT and subclasses
9 9
  */
10
-class bptException extends Exception{}
11 10
\ No newline at end of file
11
+class bptException extends Exception {}
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/BPT.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -236,13 +236,13 @@  discard block
 block discarded – undo
236 236
  * @method gameHighScore[]|responseError getGameHighScores (int|null|array $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 $return_array = 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. On success, returns an Array of GameHighScore objects.
237 237
  * @method gameHighScore[]|responseError getGameHigh (int|null|array $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 $return_array = 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. On success, returns an Array of GameHighScore objects.
238 238
  */
239
-class BPT extends telegram{
239
+class BPT extends telegram {
240 240
     public static update $update;
241 241
 
242 242
     public static BPT $handler;
243 243
 
244 244
 
245
-    public function __construct (array|stdClass $settings) {
245
+    public function __construct(array | stdClass $settings) {
246 246
         static::$handler = &$this;
247 247
         settings::init($settings);
248 248
     }
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         settings::done();
252 252
     }
253 253
 
254
-    public static function exit (string|null $message = null) {
254
+    public static function exit (string | null $message = null) {
255 255
         die($message ?? "<div style='width:98vw;height:98vh;display:flex;justify-content:center;align-items:center;font-size:25vw'>BPT</div>");
256 256
     }
257 257
 }
Please login to merge, or discard this patch.
src/types/responseError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public string $description;
19 19
 
20 20
 
21
-    public function __construct(stdClass|null $object = null) {
21
+    public function __construct(stdClass | null $object = null) {
22 22
         if ($object != null) {
23 23
             parent::__construct($object, self::subs);
24 24
         }
Please login to merge, or discard this patch.
src/types/callbackGame.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /** Keep all of properties which has sub properties */
12 12
     private const subs = [];
13 13
 
14
-    public function __construct(stdClass|null $object = null) {
14
+    public function __construct(stdClass | null $object = null) {
15 15
         if ($object != null) {
16 16
             parent::__construct($object, self::subs);
17 17
         }
Please login to merge, or discard this patch.
src/types/passportFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public int $file_date;
29 29
 
30 30
 
31
-    public function __construct(stdClass|null $object = null) {
31
+    public function __construct(stdClass | null $object = null) {
32 32
         if ($object != null) {
33 33
             parent::__construct($object, self::subs);
34 34
         }
Please login to merge, or discard this patch.
src/types/stickerSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public photoSize $thumb;
47 47
 
48 48
 
49
-    public function __construct(stdClass|null $object = null) {
49
+    public function __construct(stdClass | null $object = null) {
50 50
         if ($object != null) {
51 51
             parent::__construct($object, self::subs);
52 52
         }
Please login to merge, or discard this patch.
src/types/chatJoinRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public chatInviteLink $invite_link;
32 32
 
33 33
 
34
-    public function __construct(stdClass|null $object = null) {
34
+    public function __construct(stdClass | null $object = null) {
35 35
         if ($object != null) {
36 36
             parent::__construct($object, self::subs);
37 37
         }
Please login to merge, or discard this patch.