Passed
Push — main ( 01a6e7...2ad3f1 )
by Miaad
01:28
created
telegram.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@  discard block
 block discarded – undo
6 6
     public function __call (string $name, array $arguments) {
7 7
         if (!isset($arguments[1]) && is_array($arguments[0])) {
8 8
             request::$name(...$arguments[0]);
9
-        }
10
-        else {
9
+        } else {
11 10
             request::$name($arguments);
12 11
         }
13 12
     }
@@ -15,8 +14,7 @@  discard block
 block discarded – undo
15 14
     public static function __callStatic (string $name, array $arguments) {
16 15
         if (!isset($arguments[1]) && is_array($arguments[0])) {
17 16
             request::$name(...$arguments[0]);
18
-        }
19
-        else {
17
+        } else {
20 18
             request::$name(...$arguments);
21 19
         }
22 20
     }
Please login to merge, or discard this patch.
request.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -230,8 +230,7 @@  discard block
 block discarded – undo
230 230
             self::keysName($action,$arguments);
231 231
             self::readyFile($action,$arguments);
232 232
             print_r($arguments);
233
-        }
234
-        else {
233
+        } else {
235 234
             logger::write("$name method is not supported",'error');
236 235
         }
237 236
     }
@@ -256,8 +255,7 @@  discard block
 block discarded – undo
256 255
                     $arguments['media'][$key]['media'] = new CURLFile($media['media']);
257 256
                 }
258 257
             }
259
-        }
260
-        elseif ($file_params = self::methodFile($name)) {
258
+        } elseif ($file_params = self::methodFile($name)) {
261 259
             foreach ($file_params as $param) {
262 260
                 if (isset($arguments[$param]) && file_exists($arguments[$param])) {
263 261
                     $arguments[$param] = new CURLFile($arguments[$param]);
Please login to merge, or discard this patch.