Passed
Push — main ( 4cb247...21f878 )
by Miaad
10:47
created
src/api/request/curl.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@  discard block
 block discarded – undo
41 41
             $curl_handler = curl_init(settings::$base_url."/bot$token/");
42 42
             curl_setopt($curl_handler, CURLOPT_RETURNTRANSFER, true);
43 43
             curl_setopt($curl_handler, CURLOPT_SSL_VERIFYPEER, false);
44
-        }
45
-        else{
44
+        } else{
46 45
             $token = settings::$token;
47 46
             if (!isset(self::$curl_handler)){
48 47
                 self::$curl_handler = curl_init(settings::$base_url."/bot$token/");
@@ -64,11 +63,9 @@  discard block
 block discarded – undo
64 63
         if (isset($data['forgot'])) {
65 64
             curl_setopt($curl_handler, CURLOPT_TIMEOUT_MS, settings::$forgot_time);
66 65
             unset($data['forgot']);
67
-        }
68
-        elseif ($method === 'getUpdates' || $method === 'setWebhook'){
66
+        } elseif ($method === 'getUpdates' || $method === 'setWebhook'){
69 67
             curl_setopt($curl_handler, CURLOPT_TIMEOUT_MS, 5000);
70
-        }
71
-        else{
68
+        } else{
72 69
             curl_setopt($curl_handler, CURLOPT_TIMEOUT_MS, settings::$base_timeout);
73 70
         }
74 71
     }
Please login to merge, or discard this patch.
src/api/telegram.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         if (isset($file->file_path)) {
32 32
             $file_path = settings::$down_url . 'bot' . settings::$token . '/' . $file->file_path;
33 33
             return tools::downloadFile($file_path, $destination);
34
-        }
35
-        else {
34
+        } else {
36 35
             return false;
37 36
         }
38 37
     }
Please login to merge, or discard this patch.