@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Teebot\Command\Emulator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Teebot\Command\Emulator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Teebot\Command\Listener; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Teebot\Command\Listener; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Teebot\Command; |
| 6 | 6 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @author Stanislav Drozdov <[email protected]> |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Teebot; |
| 15 | 15 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | public function __construct(AbstractContainer $config) |
| 46 | 46 | { |
| 47 | - define('TEEBOT_ROOT', realpath(__DIR__ . '/../')); |
|
| 47 | + define('TEEBOT_ROOT', realpath(__DIR__.'/../')); |
|
| 48 | 48 | |
| 49 | 49 | $this->init($config); |
| 50 | 50 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | if ($response instanceof Response) { |
| 112 | 112 | $offset = $response->getOffset(); |
| 113 | 113 | } |
| 114 | - } catch (\Exception $e){ |
|
| 114 | + } catch (\Exception $e) { |
|
| 115 | 115 | $this->logger->exception($e); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * @author Stanislav Drozdov <[email protected]> |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace Teebot\Api; |
| 14 | 14 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | $entity = $this->buildEntity($rawItemData, $entityClass); |
| 136 | 136 | |
| 137 | 137 | if ($entity && $entity instanceof Update) { |
| 138 | - $this->lastUpdate = (int)$entity->getUpdateId(); |
|
| 138 | + $this->lastUpdate = (int) $entity->getUpdateId(); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | $entities[] = $entity; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $entity = null; |
| 161 | 161 | |
| 162 | 162 | if (!class_exists($entityClass)) { |
| 163 | - throw new BuildEntityException('Entity "' . $entityClass . '" does not exists or not supported yet!'); |
|
| 163 | + throw new BuildEntityException('Entity "'.$entityClass.'" does not exists or not supported yet!'); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** @var EntityInterface $entity */ |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @author Stanislav Drozdov <[email protected]> |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Teebot\Api\Command; |
| 15 | 15 | |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * |
| 275 | 275 | * @return bool |
| 276 | 276 | */ |
| 277 | - protected function isCommandSupported(?string $preDefinedCommand, string $command): bool |
|
| 277 | + protected function isCommandSupported(?string $preDefinedCommand, string $command) : bool |
|
| 278 | 278 | { |
| 279 | 279 | return $preDefinedCommand !== null && strtolower($preDefinedCommand) == strtolower($command); |
| 280 | 280 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * @author Stanislav Drozdov <[email protected]> |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -declare(strict_types=1); |
|
| 13 | +declare(strict_types = 1); |
|
| 14 | 14 | |
| 15 | 15 | namespace Teebot\Api\Command; |
| 16 | 16 | |