@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * An example of how to run Teebot in webhook mode. |
|
| 4 | - * |
|
| 5 | - * @author Stan Drozdov <[email protected]> |
|
| 6 | - */ |
|
| 3 | + * An example of how to run Teebot in webhook mode. |
|
| 4 | + * |
|
| 5 | + * @author Stan Drozdov <[email protected]> |
|
| 6 | + */ |
|
| 7 | 7 | define('ROOT_DIR', realpath(__DIR__)); |
| 8 | 8 | require_once ROOT_DIR . '/vendor/autoload.php'; |
| 9 | 9 | |
@@ -276,7 +276,7 @@ |
||
| 276 | 276 | |
| 277 | 277 | $className = $this->config->getCommandNamespace() . "\\" . $name; |
| 278 | 278 | } elseif ($entity instanceof AbstractEntity) { |
| 279 | - $className = $this->config->getEntityEventNamespace() . "\\". $entity->getEntityType(); |
|
| 279 | + $className = $this->config->getEntityEventNamespace() . "\\" . $entity->getEntityType(); |
|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | if ($className && class_exists($className)) { |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | { |
| 135 | 135 | foreach ($this->supportedProperties as $propertyName => $isRequired) { |
| 136 | 136 | if ($isRequired === true && empty($properties[$propertyName])) { |
| 137 | - throw new Critical('Required property "'.$propertyName.'" is not set!'); |
|
| 137 | + throw new Critical('Required property "' . $propertyName . '" is not set!'); |
|
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | echo sprintf( |
| 41 | 41 | $pattern, |
| 42 | 42 | $e->getMessage() |
| 43 | - ). "\n"; |
|
| 43 | + ) . "\n"; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | if ($e instanceof Fatal) { |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class UserProfilePhotos extends AbstractEntity |
| 6 | 6 | { |
| 7 | - const ENTITY_TYPE = 'UserProfilePhotos'; |
|
| 7 | + const ENTITY_TYPE = 'UserProfilePhotos'; |
|
| 8 | 8 | |
| 9 | 9 | protected $total_count; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Message extends AbstractEntity |
| 6 | 6 | { |
| 7 | - const ENTITY_TYPE = 'Message'; |
|
| 7 | + const ENTITY_TYPE = 'Message'; |
|
| 8 | 8 | |
| 9 | 9 | protected $messageType = self::ENTITY_TYPE; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Command extends AbstractEntity |
| 6 | 6 | { |
| 7 | - const ENTITY_TYPE = 'Command'; |
|
| 7 | + const ENTITY_TYPE = 'Command'; |
|
| 8 | 8 | |
| 9 | 9 | const PREFIX = '/'; |
| 10 | 10 | |