@@ -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; |
@@ -6,9 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | public static function fromResponse($data) |
8 | 8 | { |
9 | - $arrayOfBotCommand = []; |
|
9 | + $arrayOfBotCommand = [ ]; |
|
10 | 10 | foreach ($data as $botCommand) { |
11 | - $arrayOfBotCommand[] = BotCommand::fromResponse($botCommand); |
|
11 | + $arrayOfBotCommand[ ] = BotCommand::fromResponse($botCommand); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | return $arrayOfBotCommand; |
@@ -6,9 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | public static function fromResponse($data) |
8 | 8 | { |
9 | - $arrayOfUsers = []; |
|
9 | + $arrayOfUsers = [ ]; |
|
10 | 10 | foreach ($data as $user) { |
11 | - $arrayOfUsers[] = User::fromResponse($user); |
|
11 | + $arrayOfUsers[ ] = User::fromResponse($user); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | return $arrayOfUsers; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public static function fromResponse($data) |
8 | 8 | { |
9 | - return array_map(function ($arrayOfPhotoSize) { |
|
9 | + return array_map(function($arrayOfPhotoSize) { |
|
10 | 10 | return ArrayOfPhotoSize::fromResponse($arrayOfPhotoSize); |
11 | 11 | }, $data); |
12 | 12 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | class VideoNote extends BaseType implements TypeInterface |
15 | 15 | { |
16 | - protected static $requiredParams = ['file_id', 'file_unique_id', 'length', 'duration']; |
|
16 | + protected static $requiredParams = [ 'file_id', 'file_unique_id', 'length', 'duration' ]; |
|
17 | 17 | |
18 | 18 | protected static $map = [ |
19 | 19 | 'file_id' => true, |
@@ -6,9 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | public static function fromResponse($data) |
8 | 8 | { |
9 | - $arrayOfPhotoSize = []; |
|
9 | + $arrayOfPhotoSize = [ ]; |
|
10 | 10 | foreach ($data as $photoSizeItem) { |
11 | - $arrayOfPhotoSize[] = PhotoSize::fromResponse($photoSizeItem); |
|
11 | + $arrayOfPhotoSize[ ] = PhotoSize::fromResponse($photoSizeItem); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | return $arrayOfPhotoSize; |
@@ -6,9 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | public static function fromResponse($data) |
8 | 8 | { |
9 | - $arrayOfUpdates = []; |
|
9 | + $arrayOfUpdates = [ ]; |
|
10 | 10 | foreach ($data as $update) { |
11 | - $arrayOfUpdates[] = Update::fromResponse($update); |
|
11 | + $arrayOfUpdates[ ] = Update::fromResponse($update); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | return $arrayOfUpdates; |
@@ -6,9 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | public static function fromResponse($data) |
8 | 8 | { |
9 | - $arrayOfChatMemberEntity = []; |
|
9 | + $arrayOfChatMemberEntity = [ ]; |
|
10 | 10 | foreach ($data as $chatMemberEntity) { |
11 | - $arrayOfChatMemberEntity[] = ChatMember::fromResponse($chatMemberEntity); |
|
11 | + $arrayOfChatMemberEntity[ ] = ChatMember::fromResponse($chatMemberEntity); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | return $arrayOfChatMemberEntity; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @var array |
21 | 21 | */ |
22 | - protected static $requiredParams = ['name', 'title', 'sticker_type', 'is_animated', 'is_video', 'stickers']; |
|
22 | + protected static $requiredParams = [ 'name', 'title', 'sticker_type', 'is_animated', 'is_video', 'stickers' ]; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * {@inheritdoc} |