@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @var array |
21 | 21 | */ |
22 | - static protected $requiredParams = ['file_id', 'file_unique_id', 'width', 'height']; |
|
22 | + static protected $requiredParams = [ 'file_id', 'file_unique_id', 'width', 'height' ]; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * {@inheritdoc} |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @var array |
44 | 44 | */ |
45 | - static protected $requiredParams = ['type', 'offset', 'length']; |
|
45 | + static protected $requiredParams = [ 'type', 'offset', 'length' ]; |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * {@inheritdoc} |
@@ -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} |
@@ -6,9 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | public static function fromResponse($data) |
8 | 8 | { |
9 | - $arrayOfStickers = []; |
|
9 | + $arrayOfStickers = [ ]; |
|
10 | 10 | foreach ($data as $sticker) { |
11 | - $arrayOfStickers[] = Sticker::fromResponse($sticker); |
|
11 | + $arrayOfStickers[ ] = Sticker::fromResponse($sticker); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | return $arrayOfStickers; |
@@ -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} |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @var array |
21 | 21 | */ |
22 | - protected static $requiredParams = ['message_thread_id', 'name', 'icon_color']; |
|
22 | + protected static $requiredParams = [ 'message_thread_id', 'name', 'icon_color' ]; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * {@inheritdoc} |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @var array |
25 | 25 | */ |
26 | - static protected $requiredParams = ['update_id']; |
|
26 | + static protected $requiredParams = [ 'update_id' ]; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * {@inheritdoc} |