@@ -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} |
@@ -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; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @var array |
15 | 15 | */ |
16 | - protected $parameters = []; |
|
16 | + protected $parameters = [ ]; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * HttpException constructor. |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param Exception $previous [optional] The previous throwable used for the exception chaining. |
24 | 24 | * @param array $parameters [optional] Array of parameters returned from API. |
25 | 25 | */ |
26 | - public function __construct($message = '', $code = 0, Exception $previous = null, $parameters = []) |
|
26 | + public function __construct($message = '', $code = 0, Exception $previous = null, $parameters = [ ]) |
|
27 | 27 | { |
28 | 28 | $this->parameters = $parameters; |
29 | 29 |
@@ -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} |