@@ -16,7 +16,7 @@ |
||
16 | 16 | * |
17 | 17 | * @var array |
18 | 18 | */ |
19 | - protected static $requiredParams = ['message_id', 'date', 'chat']; |
|
19 | + protected static $requiredParams = [ 'message_id', 'date', 'chat' ]; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * {@inheritdoc} |
@@ -10,9 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | public static function fromResponse($data) |
12 | 12 | { |
13 | - $arrayOfUsers = []; |
|
13 | + $arrayOfUsers = [ ]; |
|
14 | 14 | foreach ($data as $user) { |
15 | - $arrayOfUsers[] = User::fromResponse($user); |
|
15 | + $arrayOfUsers[ ] = User::fromResponse($user); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | return $arrayOfUsers; |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public static function fromResponse($data) |
12 | 12 | { |
13 | - return array_map(function ($arrayOfPhotoSize) { |
|
13 | + return array_map(function($arrayOfPhotoSize) { |
|
14 | 14 | return ArrayOfPhotoSize::fromResponse($arrayOfPhotoSize); |
15 | 15 | }, $data); |
16 | 16 | } |
@@ -10,9 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | public static function fromResponse($data) |
12 | 12 | { |
13 | - $arrayOfPhotoSize = []; |
|
13 | + $arrayOfPhotoSize = [ ]; |
|
14 | 14 | foreach ($data as $photoSizeItem) { |
15 | - $arrayOfPhotoSize[] = PhotoSize::fromResponse($photoSizeItem); |
|
15 | + $arrayOfPhotoSize[ ] = PhotoSize::fromResponse($photoSizeItem); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | return $arrayOfPhotoSize; |
@@ -10,9 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | public static function fromResponse($data) |
12 | 12 | { |
13 | - $arrayOfUpdates = []; |
|
13 | + $arrayOfUpdates = [ ]; |
|
14 | 14 | foreach ($data as $update) { |
15 | - $arrayOfUpdates[] = Update::fromResponse($update); |
|
15 | + $arrayOfUpdates[ ] = Update::fromResponse($update); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | return $arrayOfUpdates; |
@@ -10,9 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | public static function fromResponse($data) |
12 | 12 | { |
13 | - $arrayOfChatMemberEntity = []; |
|
13 | + $arrayOfChatMemberEntity = [ ]; |
|
14 | 14 | foreach ($data as $chatMemberEntity) { |
15 | - $arrayOfChatMemberEntity[] = ChatMember::fromResponse($chatMemberEntity); |
|
15 | + $arrayOfChatMemberEntity[ ] = ChatMember::fromResponse($chatMemberEntity); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | return $arrayOfChatMemberEntity; |
@@ -10,9 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | public static function fromResponse($data) |
12 | 12 | { |
13 | - $arrayOfStickers = []; |
|
13 | + $arrayOfStickers = [ ]; |
|
14 | 14 | foreach ($data as $sticker) { |
15 | - $arrayOfStickers[] = Sticker::fromResponse($sticker); |
|
15 | + $arrayOfStickers[ ] = Sticker::fromResponse($sticker); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | return $arrayOfStickers; |
@@ -10,9 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | public static function fromResponse($data) |
12 | 12 | { |
13 | - $arrayOfLabeledPrice = []; |
|
13 | + $arrayOfLabeledPrice = [ ]; |
|
14 | 14 | foreach ($data as $labeledPrice) { |
15 | - $arrayOfLabeledPrice[] = LabeledPrice::fromResponse($labeledPrice); |
|
15 | + $arrayOfLabeledPrice[ ] = LabeledPrice::fromResponse($labeledPrice); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | return $arrayOfLabeledPrice; |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected static $requiredParams = []; |
|
15 | + protected static $requiredParams = [ ]; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * {@inheritdoc} |