@@ -6,9 +6,9 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public static function fromResponse($data) |
| 8 | 8 | { |
| 9 | - $arrayOfUsers = []; |
|
| 9 | + $arrayOfUsers = [ ]; |
|
| 10 | 10 | foreach ($data as $user) { |
| 11 | - $arrayOfUsers[] = User::fromResponse($user); |
|
| 11 | + $arrayOfUsers[ ] = User::fromResponse($user); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | return $arrayOfUsers; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @var array |
| 21 | 21 | */ |
| 22 | - static protected $requiredParams = ['total_count', 'photos']; |
|
| 22 | + static protected $requiredParams = [ 'total_count', 'photos' ]; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * {@inheritdoc} |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @var array |
| 21 | 21 | */ |
| 22 | - static protected $requiredParams = ['id', 'first_name']; |
|
| 22 | + static protected $requiredParams = [ 'id', 'first_name' ]; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * {@inheritdoc} |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public static function fromResponse($data) |
| 8 | 8 | { |
| 9 | - return array_map(function ($arrayOfPhotoSize) { |
|
| 9 | + return array_map(function($arrayOfPhotoSize) { |
|
| 10 | 10 | return ArrayOfPhotoSize::fromResponse($arrayOfPhotoSize); |
| 11 | 11 | }, $data); |
| 12 | 12 | } |
@@ -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, |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @var array |
| 22 | 22 | */ |
| 23 | - static protected $requiredParams = ['hide_keyboard']; |
|
| 23 | + static protected $requiredParams = [ 'hide_keyboard' ]; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * {@inheritdoc} |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @var array |
| 24 | 24 | */ |
| 25 | - static protected $requiredParams = ['url', 'has_custom_certificate', 'pending_update_count']; |
|
| 25 | + static protected $requiredParams = [ 'url', 'has_custom_certificate', 'pending_update_count' ]; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * {@inheritdoc} |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * |
| 27 | 27 | * @var array |
| 28 | 28 | */ |
| 29 | - static protected $requiredParams = ['message_text']; |
|
| 29 | + static protected $requiredParams = [ 'message_text' ]; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * {@inheritdoc} |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @var array |
| 27 | 27 | */ |
| 28 | - static protected $requiredParams = ['latitude', 'longitude', 'title', 'address']; |
|
| 28 | + static protected $requiredParams = [ 'latitude', 'longitude', 'title', 'address' ]; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * {@inheritdoc} |