Completed
Push — master ( 1cdbdb...c3d48f )
by Armando
01:54
created
src/BotManager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the TelegramBotManager package.
4 4
  *
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
             return 604800; // Default to 7 days.
326 326
         }
327 327
 
328
-        return max(0, (int) $loop_time);
328
+        return max(0, (int)$loop_time);
329 329
     }
330 330
 
331 331
     /**
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         }
343 343
 
344 344
         // Minimum interval is 1 second.
345
-        return max(1, (int) $interval_time);
345
+        return max(1, (int)$interval_time);
346 346
     }
347 347
 
348 348
     /**
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 
384 384
         $response = $this->telegram->handleGetUpdates();
385 385
         if ($response->isOk()) {
386
-            $results = array_filter((array) $response->getResult());
386
+            $results = array_filter((array)$response->getResult());
387 387
 
388 388
             $output .= sprintf('Updates processed: %d' . PHP_EOL, count($results));
389 389
 
@@ -469,9 +469,9 @@  discard block
 block discarded – undo
469 469
             }
470 470
         }
471 471
 
472
-        $lower_dec = (float) sprintf('%u', ip2long(self::TELEGRAM_IP_LOWER));
473
-        $upper_dec = (float) sprintf('%u', ip2long(self::TELEGRAM_IP_UPPER));
474
-        $ip_dec    = (float) sprintf('%u', ip2long($ip));
472
+        $lower_dec = (float)sprintf('%u', ip2long(self::TELEGRAM_IP_LOWER));
473
+        $upper_dec = (float)sprintf('%u', ip2long(self::TELEGRAM_IP_UPPER));
474
+        $ip_dec    = (float)sprintf('%u', ip2long($ip));
475 475
 
476 476
         return $ip_dec >= $lower_dec && $ip_dec <= $upper_dec;
477 477
     }
Please login to merge, or discard this patch.
src/Action.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the TelegramBotManager package.
4 4
  *
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function isAction($actions): bool
54 54
     {
55
-        return in_array($this->action, (array) $actions, true);
55
+        return in_array($this->action, (array)$actions, true);
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
src/Params.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the TelegramBotManager package.
4 4
  *
Please login to merge, or discard this patch.