Passed
Push — main ( 060baa...fce709 )
by Miaad
02:18
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.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace BPT;
4 4
 
5
-use BPT\tools\{is,file,convert,generator,encrypt};
5
+use BPT\tools\{is, file, convert, generator, encrypt};
6 6
 
7
-class tools{
7
+class tools {
8 8
     use is;
9 9
     use file;
10 10
     use convert;
Please login to merge, or discard this patch.
src/api/telegram.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 namespace BPT\api;
4 4
 
5 5
 class telegram extends request {
6
-    public function __call (string $name, array $arguments) {
6
+    public function __call(string $name, array $arguments) {
7 7
         if (!isset($arguments[1]) && isset($arguments[0]) && is_array($arguments[0])) {
8 8
             return request::$name(...$arguments[0]);
9 9
         }
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/tools/generator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
      *
29 29
      * @return string
30 30
      */
31
-    public static function randomString (int $length = 16, string $characters = 'aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ'): string {
31
+    public static function randomString(int $length = 16, string $characters = 'aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ'): string {
32 32
         $rand_string = '';
33 33
         $char_len = strlen($characters) - 1;
34
-        for ($i = 0; $i < $length; $i ++) {
34
+        for ($i = 0; $i < $length; $i++) {
35 35
             $rand_string .= $characters[rand(0, $char_len)];
36 36
         }
37 37
         return $rand_string;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @return inlineKeyboardMarkup|replyKeyboardMarkup replyKeyboardMarkup for keyboard and inlineKeyboardMarkup for inline
61 61
      * @throws bptException
62 62
      */
63
-    public static function easyKey(array $keyboard = [], array $inline = []): inlineKeyboardMarkup|replyKeyboardMarkup {
63
+    public static function easyKey(array $keyboard = [], array $inline = []): inlineKeyboardMarkup | replyKeyboardMarkup {
64 64
         if (!empty($keyboard)) {
65 65
             $keyboard_object = new replyKeyboardMarkup();
66 66
             $keyboard_object->setResize_keyboard($keyboard['resize'] ?? true);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             return $keyboard_object;
120 120
         }
121 121
         else {
122
-            logger::write("tools::eKey function used\nkeyboard or inline parameter must be set",loggerTypes::ERROR);
122
+            logger::write("tools::eKey function used\nkeyboard or inline parameter must be set", loggerTypes::ERROR);
123 123
             throw new bptException('ARGUMENT_NOT_FOUND_KEYBOARD_INLINE');
124 124
         }
125 125
     }
Please login to merge, or discard this patch.
src/database/database.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
     /**
12 12
      * @method Json_init
13 13
      */
14
-    public function json_init () {
14
+    public function json_init() {
15 15
         (new jsondb())->init(handler::$dbname);
16 16
     }
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
src/database/handler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      *
50 50
      */
51
-    public function __construct (array $settings) {
51
+    public function __construct(array $settings) {
52 52
         if (in_array($settings['type'], self::TYPES)) {
53 53
             if ($settings['type'] === 'Mysqli') {
54 54
                 if (self::CheckParam($settings)) {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         }
89 89
     }
90 90
 
91
-    private static function CheckParam (array $array) {
91
+    private static function CheckParam(array $array) {
92 92
         if (isset($array['username']) && isset($array['dbname']) && isset($array['password'])) {
93 93
             self::$host = $array['host'] ?? 'localhost';
94 94
             self::$username = $array['username'];
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/exception/telegramException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
4 4
 
5 5
 use Exception;
6 6
 
7
-class telegramException extends Exception{}
8 7
\ No newline at end of file
8
+class telegramException extends Exception {}
9 9
\ No newline at end of file
Please login to merge, or discard this patch.