@@ -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; |
| 15 | 15 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | string $receivedData, |
| 88 | 88 | ?string $entityClass, |
| 89 | 89 | EntityInterface $parent = null |
| 90 | - ): Response { |
|
| 90 | + ) : Response { |
|
| 91 | 91 | return new Response($receivedData, $entityClass, $parent); |
| 92 | 92 | } |
| 93 | 93 | } |
@@ -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\Configuration; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Teebot\Configuration; |
| 6 | 6 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $replace = []; |
| 69 | 69 | |
| 70 | 70 | foreach ($tokens as $token) { |
| 71 | - $envKey = static::ENV_PREFIX . strtoupper(substr($token, 1, strlen($token) - 2)); |
|
| 71 | + $envKey = static::ENV_PREFIX.strtoupper(substr($token, 1, strlen($token) - 2)); |
|
| 72 | 72 | $envValue = getenv($envKey); |
| 73 | 73 | |
| 74 | 74 | if ($envValue) { |
@@ -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\Configuration; |
| 6 | 6 | |
@@ -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 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @return array |
| 79 | 79 | */ |
| 80 | - protected function decodeData(string $rawData): ?array |
|
| 80 | + protected function decodeData(string $rawData): ? array |
|
| 81 | 81 | { |
| 82 | 82 | if (!is_string($rawData) || !strlen($rawData)) { |
| 83 | 83 | return []; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | $entity = $this->buildEntity($rawItemData, $entityClass); |
| 135 | 135 | |
| 136 | 136 | if ($entity && $entity instanceof Update) { |
| 137 | - $this->lastUpdate = (int)$entity->getUpdateId(); |
|
| 137 | + $this->lastUpdate = (int) $entity->getUpdateId(); |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | $entities[] = $entity; |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | $entityClass = $entityClass ? $entityClass : static::DEFAULT_ENTITY_TYPE; |
| 159 | 159 | |
| 160 | 160 | if (!class_exists($entityClass)) { |
| 161 | - throw new BuildEntityException('Entity "' . $entityClass . '" does not exists or not supported yet!'); |
|
| 161 | + throw new BuildEntityException('Entity "'.$entityClass.'" does not exists or not supported yet!'); |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** @var EntityInterface $entity */ |