@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 | /** |
@@ -1,4 +1,4 @@ |
||
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 | * |