@@ -77,7 +77,7 @@ |
||
77 | 77 | |
78 | 78 | BotApi::curlValidate($this->curl); |
79 | 79 | |
80 | - if ($result['status'] !== 'accepted') { |
|
80 | + if ($result[ 'status' ] !== 'accepted') { |
|
81 | 81 | throw new Exception('Error Processing Request'); |
82 | 82 | } |
83 | 83 | } |
@@ -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 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | class MaskPosition extends BaseType implements TypeInterface |
16 | 16 | { |
17 | - protected static $requiredParams = ['point', 'x_shift', 'y_shift', 'scale']; |
|
17 | + protected static $requiredParams = [ 'point', 'x_shift', 'y_shift', 'scale' ]; |
|
18 | 18 | |
19 | 19 | protected static $map = [ |
20 | 20 | 'point' => true, |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @var array |
21 | 21 | */ |
22 | - protected static $requiredParams = ['name', 'icon_color']; |
|
22 | + protected static $requiredParams = [ 'name', 'icon_color' ]; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * {@inheritdoc} |
@@ -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, |
@@ -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} |
@@ -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} |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * |
23 | 23 | * @var array |
24 | 24 | */ |
25 | - protected static $requiredParams = ['file_id']; |
|
25 | + protected static $requiredParams = [ 'file_id' ]; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * {@inheritdoc} |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @var array |
25 | 25 | */ |
26 | - protected static $requiredParams = ['id', 'from']; |
|
26 | + protected static $requiredParams = [ 'id', 'from' ]; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * {@inheritdoc} |