@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * |
| 13 | 13 | * @var array |
| 14 | 14 | */ |
| 15 | - static protected $requiredParams = ['command', 'description']; |
|
| 15 | + static protected $requiredParams = [ 'command', 'description' ]; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * {@inheritdoc} |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public static function fromResponse($data) |
| 14 | 14 | { |
| 15 | - $arrayOfMessageEntity = []; |
|
| 15 | + $arrayOfMessageEntity = [ ]; |
|
| 16 | 16 | foreach ($data as $messageEntity) { |
| 17 | - $arrayOfMessageEntity[] = MessageEntity::fromResponse($messageEntity); |
|
| 17 | + $arrayOfMessageEntity[ ] = MessageEntity::fromResponse($messageEntity); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | return $arrayOfMessageEntity; |
@@ -6,9 +6,9 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public static function fromResponse($data) |
| 8 | 8 | { |
| 9 | - $arrayOfMessages = []; |
|
| 9 | + $arrayOfMessages = [ ]; |
|
| 10 | 10 | foreach ($data as $message) { |
| 11 | - $arrayOfMessages[] = Message::fromResponse($message); |
|
| 11 | + $arrayOfMessages[ ] = Message::fromResponse($message); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | return $arrayOfMessages; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @var array |
| 18 | 18 | */ |
| 19 | - static protected $requiredParams = ['emoji', 'value']; |
|
| 19 | + static protected $requiredParams = [ 'emoji', 'value' ]; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * {@inheritdoc} |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * |
| 19 | 19 | * @var array |
| 20 | 20 | */ |
| 21 | - static protected $requiredParams = ['phone_number', 'first_name']; |
|
| 21 | + static protected $requiredParams = [ 'phone_number', 'first_name' ]; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * {@inheritdoc} |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @var array |
| 21 | 21 | */ |
| 22 | - static protected $requiredParams = ['file_id', 'file_unique_id', 'duration']; |
|
| 22 | + static protected $requiredParams = [ 'file_id', 'file_unique_id', 'duration' ]; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * {@inheritdoc} |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * @var array |
| 15 | 15 | */ |
| 16 | - static protected $requiredParams = ['id', 'type']; |
|
| 16 | + static protected $requiredParams = [ 'id', 'type' ]; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * {@inheritdoc} |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * |
| 13 | 13 | * @var array |
| 14 | 14 | */ |
| 15 | - static protected $requiredParams = ['location', 'address']; |
|
| 15 | + static protected $requiredParams = [ 'location', 'address' ]; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * {@inheritdoc} |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @var array |
| 17 | 17 | */ |
| 18 | - static protected $requiredParams = ['message_id', 'date', 'chat']; |
|
| 18 | + static protected $requiredParams = [ 'message_id', 'date', 'chat' ]; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * {@inheritdoc} |
@@ -1044,7 +1044,7 @@ discard block |
||
| 1044 | 1044 | */ |
| 1045 | 1045 | public function setDeleteChatPhoto($deleteChatPhoto) |
| 1046 | 1046 | { |
| 1047 | - $this->deleteChatPhoto = (bool)$deleteChatPhoto; |
|
| 1047 | + $this->deleteChatPhoto = (bool) $deleteChatPhoto; |
|
| 1048 | 1048 | } |
| 1049 | 1049 | |
| 1050 | 1050 | /** |
@@ -1060,7 +1060,7 @@ discard block |
||
| 1060 | 1060 | */ |
| 1061 | 1061 | public function setGroupChatCreated($groupChatCreated) |
| 1062 | 1062 | { |
| 1063 | - $this->groupChatCreated = (bool)$groupChatCreated; |
|
| 1063 | + $this->groupChatCreated = (bool) $groupChatCreated; |
|
| 1064 | 1064 | } |
| 1065 | 1065 | |
| 1066 | 1066 | /** |