@@ -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} |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * |
| 13 | 13 | * @var array |
| 14 | 14 | */ |
| 15 | - protected static $requiredParams = ['data', 'button_text']; |
|
| 15 | + protected static $requiredParams = [ 'data', 'button_text' ]; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * {@inheritdoc} |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * |
| 18 | 18 | * @var array |
| 19 | 19 | */ |
| 20 | - protected static $requiredParams = ['keyboard']; |
|
| 20 | + protected static $requiredParams = [ 'keyboard' ]; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * {@inheritdoc} |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @param bool|null $isPersistent |
| 91 | 91 | * @param string|null $inputFieldPlaceholder |
| 92 | 92 | */ |
| 93 | - public function __construct($keyboard = [], $oneTimeKeyboard = null, $resizeKeyboard = null, $selective = null, $isPersistent = null, $inputFieldPlaceholder = null) |
|
| 93 | + public function __construct($keyboard = [ ], $oneTimeKeyboard = null, $resizeKeyboard = null, $selective = null, $isPersistent = null, $inputFieldPlaceholder = null) |
|
| 94 | 94 | { |
| 95 | 95 | $this->keyboard = $keyboard; |
| 96 | 96 | $this->oneTimeKeyboard = $oneTimeKeyboard; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @var array |
| 22 | 22 | */ |
| 23 | - protected static $requiredParams = ['type', 'id', 'mpeg4_url', 'thumbnail_url']; |
|
| 23 | + protected static $requiredParams = [ 'type', 'id', 'mpeg4_url', 'thumbnail_url' ]; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * {@inheritdoc} |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @var array |
| 22 | 22 | */ |
| 23 | - protected static $requiredParams = ['type', 'id', 'gif_url', 'thumbnail_url']; |
|
| 23 | + protected static $requiredParams = [ 'type', 'id', 'gif_url', 'thumbnail_url' ]; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * {@inheritdoc} |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @var array |
| 21 | 21 | */ |
| 22 | - protected static $requiredParams = ['type', 'id', 'photo_url', 'thumbnail_url']; |
|
| 22 | + protected static $requiredParams = [ 'type', 'id', 'photo_url', 'thumbnail_url' ]; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * {@inheritdoc} |