Completed
Push — master ( 3a901e...f01f2a )
by Alexander
15s queued 13s
created
src/Types/ForumTopic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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}
Please login to merge, or discard this patch.
src/Types/Payments/ArrayOfLabeledPrice.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 {
7 7
     public static function fromResponse($data)
8 8
     {
9
-        $arrayOfLabeledPrice = [];
9
+        $arrayOfLabeledPrice = [ ];
10 10
         foreach ($data as $labeledPrice) {
11
-            $arrayOfLabeledPrice[] = LabeledPrice::fromResponse($labeledPrice);
11
+            $arrayOfLabeledPrice[ ] = LabeledPrice::fromResponse($labeledPrice);
12 12
         }
13 13
 
14 14
         return $arrayOfLabeledPrice;
Please login to merge, or discard this patch.
src/BotApi.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         // Informational 1xx
47 47
         100 => 'Continue',
48 48
         101 => 'Switching Protocols',
49
-        102 => 'Processing',            // RFC2518
49
+        102 => 'Processing', // RFC2518
50 50
         // Success 2xx
51 51
         200 => 'OK',
52 52
         201 => 'Created',
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
         204 => 'No Content',
56 56
         205 => 'Reset Content',
57 57
         206 => 'Partial Content',
58
-        207 => 'Multi-Status',          // RFC4918
59
-        208 => 'Already Reported',      // RFC5842
60
-        226 => 'IM Used',               // RFC3229
58
+        207 => 'Multi-Status', // RFC4918
59
+        208 => 'Already Reported', // RFC5842
60
+        226 => 'IM Used', // RFC3229
61 61
         // Redirection 3xx
62 62
         300 => 'Multiple Choices',
63 63
         301 => 'Moved Permanently',
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         305 => 'Use Proxy',
68 68
         // 306 is deprecated but reserved
69 69
         307 => 'Temporary Redirect',
70
-        308 => 'Permanent Redirect',    // RFC7238
70
+        308 => 'Permanent Redirect', // RFC7238
71 71
         // Client Error 4xx
72 72
         400 => 'Bad Request',
73 73
         401 => 'Unauthorized',
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
         415 => 'Unsupported Media Type',
88 88
         416 => 'Range Not Satisfiable',
89 89
         417 => 'Expectation Failed',
90
-        422 => 'Unprocessable Entity',                                        // RFC4918
91
-        423 => 'Locked',                                                      // RFC4918
92
-        424 => 'Failed Dependency',                                           // RFC4918
93
-        425 => 'Reserved for WebDAV advanced collections expired proposal',   // RFC2817
94
-        426 => 'Upgrade Required',                                            // RFC2817
95
-        428 => 'Precondition Required',                                       // RFC6585
96
-        429 => 'Too Many Requests',                                           // RFC6585
97
-        431 => 'Request Header Fields Too Large',                             // RFC6585
90
+        422 => 'Unprocessable Entity', // RFC4918
91
+        423 => 'Locked', // RFC4918
92
+        424 => 'Failed Dependency', // RFC4918
93
+        425 => 'Reserved for WebDAV advanced collections expired proposal', // RFC2817
94
+        426 => 'Upgrade Required', // RFC2817
95
+        428 => 'Precondition Required', // RFC6585
96
+        429 => 'Too Many Requests', // RFC6585
97
+        431 => 'Request Header Fields Too Large', // RFC6585
98 98
         // Server Error 5xx
99 99
         500 => 'Internal Server Error',
100 100
         501 => 'Not Implemented',
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
         503 => 'Service Unavailable',
103 103
         504 => 'Gateway Timeout',
104 104
         505 => 'HTTP Version Not Supported',
105
-        506 => 'Variant Also Negotiates (Experimental)',                      // RFC2295
106
-        507 => 'Insufficient Storage',                                        // RFC4918
107
-        508 => 'Loop Detected',                                               // RFC5842
108
-        510 => 'Not Extended',                                                // RFC2774
109
-        511 => 'Network Authentication Required',                             // RFC6585
105
+        506 => 'Variant Also Negotiates (Experimental)', // RFC2295
106
+        507 => 'Insufficient Storage', // RFC4918
107
+        508 => 'Loop Detected', // RFC5842
108
+        510 => 'Not Extended', // RFC2774
109
+        511 => 'Network Authentication Required', // RFC6585
110 110
     ];
111 111
 
112
-    private $proxySettings = [];
112
+    private $proxySettings = [ ];
113 113
 
114 114
     /**
115 115
      * Default http status code
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *
149 149
      * @var array
150 150
      */
151
-    protected $customCurlOptions = [];
151
+    protected $customCurlOptions = [ ];
152 152
 
153 153
     /**
154 154
      * Bot token
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      *
170 170
      * @var array
171 171
      */
172
-    protected $trackedEvents = [];
172
+    protected $trackedEvents = [ ];
173 173
 
174 174
     /**
175 175
      * Check whether return associative array
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     public function call($method, array $data = null, $timeout = 10)
224 224
     {
225 225
         $options = $this->proxySettings + [
226
-            CURLOPT_URL => $this->getUrl().'/'.$method,
226
+            CURLOPT_URL => $this->getUrl() . '/' . $method,
227 227
             CURLOPT_RETURNTRANSFER => true,
228 228
             CURLOPT_POST => null,
229 229
             CURLOPT_POSTFIELDS => null,
@@ -231,8 +231,8 @@  discard block
 block discarded – undo
231 231
         ];
232 232
 
233 233
         if ($data) {
234
-            $options[CURLOPT_POST] = true;
235
-            $options[CURLOPT_POSTFIELDS] = $data;
234
+            $options[ CURLOPT_POST ] = true;
235
+            $options[ CURLOPT_POSTFIELDS ] = $data;
236 236
         }
237 237
 
238 238
         if (!empty($this->customCurlOptions) && is_array($this->customCurlOptions)) {
@@ -242,11 +242,11 @@  discard block
 block discarded – undo
242 242
         $response = self::jsonValidate($this->executeCurl($options), $this->returnArray);
243 243
 
244 244
         if ($this->returnArray) {
245
-            if (!isset($response['ok']) || !$response['ok']) {
246
-                throw new Exception($response['description'], $response['error_code']);
245
+            if (!isset($response[ 'ok' ]) || !$response[ 'ok' ]) {
246
+                throw new Exception($response[ 'description' ], $response[ 'error_code' ]);
247 247
             }
248 248
 
249
-            return $response['result'];
249
+            return $response[ 'result' ];
250 250
         }
251 251
 
252 252
         if (!$response->ok) {
@@ -287,12 +287,12 @@  discard block
 block discarded – undo
287 287
      */
288 288
     public static function curlValidate($curl, $response = null)
289 289
     {
290
-        $json = json_decode($response, true) ?: [];
290
+        $json = json_decode($response, true) ?: [ ];
291 291
         if (($httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE))
292
-            && !in_array($httpCode, [self::DEFAULT_STATUS_CODE, self::NOT_MODIFIED_STATUS_CODE])
292
+            && !in_array($httpCode, [ self::DEFAULT_STATUS_CODE, self::NOT_MODIFIED_STATUS_CODE ])
293 293
         ) {
294
-            $errorDescription = array_key_exists('description', $json) ? $json['description'] : self::$codes[$httpCode];
295
-            $errorParameters = array_key_exists('parameters', $json) ? $json['parameters'] : [];
294
+            $errorDescription = array_key_exists('description', $json) ? $json[ 'description' ] : self::$codes[ $httpCode ];
295
+            $errorParameters = array_key_exists('parameters', $json) ? $json[ 'parameters' ] : [ ];
296 296
             throw new HttpException($errorDescription, $httpCode, null, $errorParameters);
297 297
         }
298 298
     }
@@ -349,9 +349,9 @@  discard block
 block discarded – undo
349 349
             'message_thread_id' => $messageThreadId,
350 350
             'parse_mode' => $parseMode,
351 351
             'disable_web_page_preview' => $disablePreview,
352
-            'reply_to_message_id' => (int)$replyToMessageId,
352
+            'reply_to_message_id' => (int) $replyToMessageId,
353 353
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
354
-            'disable_notification' => (bool)$disableNotification,
354
+            'disable_notification' => (bool) $disableNotification,
355 355
         ]));
356 356
     }
357 357
 
@@ -389,14 +389,14 @@  discard block
 block discarded – undo
389 389
         return Message::fromResponse($this->call('copyMessage', [
390 390
             'chat_id' => $chatId,
391 391
             'from_chat_id' => $fromChatId,
392
-            'message_id' => (int)$messageId,
392
+            'message_id' => (int) $messageId,
393 393
             'caption' => $caption,
394 394
             'parse_mode' => $parseMode,
395 395
             'caption_entities' => $captionEntities,
396
-            'disable_notification' => (bool)$disableNotification,
396
+            'disable_notification' => (bool) $disableNotification,
397 397
             'message_thread_id' => $messageThreadId,
398
-            'reply_to_message_id' => (int)$replyToMessageId,
399
-            'allow_sending_without_reply' => (bool)$allowSendingWithoutReply,
398
+            'reply_to_message_id' => (int) $replyToMessageId,
399
+            'allow_sending_without_reply' => (bool) $allowSendingWithoutReply,
400 400
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
401 401
         ]));
402 402
     }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
             'message_thread_id' => $messageThreadId,
435 435
             'reply_to_message_id' => $replyToMessageId,
436 436
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
437
-            'disable_notification' => (bool)$disableNotification,
437
+            'disable_notification' => (bool) $disableNotification,
438 438
         ]));
439 439
     }
440 440
 
@@ -477,9 +477,9 @@  discard block
 block discarded – undo
477 477
     public function getUserProfilePhotos($userId, $offset = 0, $limit = 100)
478 478
     {
479 479
         return UserProfilePhotos::fromResponse($this->call('getUserProfilePhotos', [
480
-            'user_id' => (int)$userId,
481
-            'offset' => (int)$offset,
482
-            'limit' => (int)$limit,
480
+            'user_id' => (int) $userId,
481
+            'offset' => (int) $offset,
482
+            'limit' => (int) $limit,
483 483
         ]));
484 484
     }
485 485
 
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
      */
545 545
     public function deleteWebhook($drop_pending_updates = false)
546 546
     {
547
-        return $this->call('deleteWebhook', ['drop_pending_updates' => $drop_pending_updates]);
547
+        return $this->call('deleteWebhook', [ 'drop_pending_updates' => $drop_pending_updates ]);
548 548
     }
549 549
 
550 550
     /**
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
             'message_thread_id'    => $messageThreadId,
643 643
             'reply_to_message_id'  => $replyToMessageId,
644 644
             'reply_markup'         => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
645
-            'disable_notification' => (bool)$disableNotification,
645
+            'disable_notification' => (bool) $disableNotification,
646 646
         ]));
647 647
     }
648 648
 
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
             'message_thread_id' => $messageThreadId,
745 745
             'reply_to_message_id' => $replyToMessageId,
746 746
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
747
-            'disable_notification' => (bool)$disableNotification,
747
+            'disable_notification' => (bool) $disableNotification,
748 748
         ]));
749 749
     }
750 750
 
@@ -779,9 +779,9 @@  discard block
 block discarded – undo
779 779
             'message_thread_id' => $messageThreadId,
780 780
             'reply_to_message_id' => $replyToMessageId,
781 781
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
782
-            'disable_notification' => (bool)$disableNotification,
783
-            'protect_content' => (bool)$protectContent,
784
-            'allow_sending_without_reply' => (bool)$allowSendingWithoutReply,
782
+            'disable_notification' => (bool) $disableNotification,
783
+            'protect_content' => (bool) $protectContent,
784
+            'allow_sending_without_reply' => (bool) $allowSendingWithoutReply,
785 785
         ]));
786 786
     }
787 787
 
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
      *
808 808
      * @author bernard-ng <[email protected]>
809 809
      */
810
-    public function getCustomEmojiStickers($customEmojiIds = [])
810
+    public function getCustomEmojiStickers($customEmojiIds = [ ])
811 811
     {
812 812
         return StickerSet::fromResponse($this->call('getCustomEmojiStickers', [
813 813
             'custom_emoji_ids' => $customEmojiIds,
@@ -1004,8 +1004,8 @@  discard block
 block discarded – undo
1004 1004
             'message_thread_id' => $messageThreadId,
1005 1005
             'reply_to_message_id' => $replyToMessageId,
1006 1006
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1007
-            'disable_notification' => (bool)$disableNotification,
1008
-            'supports_streaming' => (bool)$supportsStreaming,
1007
+            'disable_notification' => (bool) $disableNotification,
1008
+            'supports_streaming' => (bool) $supportsStreaming,
1009 1009
             'parse_mode' => $parseMode
1010 1010
         ]));
1011 1011
     }
@@ -1048,7 +1048,7 @@  discard block
 block discarded – undo
1048 1048
             'message_thread_id' => $messageThreadId,
1049 1049
             'reply_to_message_id' => $replyToMessageId,
1050 1050
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1051
-            'disable_notification' => (bool)$disableNotification,
1051
+            'disable_notification' => (bool) $disableNotification,
1052 1052
             'parse_mode' => $parseMode
1053 1053
         ]));
1054 1054
     }
@@ -1097,7 +1097,7 @@  discard block
 block discarded – undo
1097 1097
             'message_thread_id' => $messageThreadId,
1098 1098
             'reply_to_message_id' => $replyToMessageId,
1099 1099
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1100
-            'disable_notification' => (bool)$disableNotification,
1100
+            'disable_notification' => (bool) $disableNotification,
1101 1101
             'allow_sending_without_reply' => $allowSendingWithoutReply,
1102 1102
             'parse_mode' => $parseMode
1103 1103
         ]));
@@ -1133,7 +1133,7 @@  discard block
 block discarded – undo
1133 1133
             'message_id' => $messageId,
1134 1134
             'message_thread_id' => $messageThreadId,
1135 1135
             'protect_content' => $protectContent,
1136
-            'disable_notification' => (bool)$disableNotification,
1136
+            'disable_notification' => (bool) $disableNotification,
1137 1137
         ]));
1138 1138
     }
1139 1139
 
@@ -1186,7 +1186,7 @@  discard block
 block discarded – undo
1186 1186
             'title' => $title,
1187 1187
             'reply_to_message_id' => $replyToMessageId,
1188 1188
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1189
-            'disable_notification' => (bool)$disableNotification,
1189
+            'disable_notification' => (bool) $disableNotification,
1190 1190
             'parse_mode' => $parseMode
1191 1191
         ]));
1192 1192
     }
@@ -1224,7 +1224,7 @@  discard block
 block discarded – undo
1224 1224
             'message_thread_id' => $messageThreadId,
1225 1225
             'reply_to_message_id' => $replyToMessageId,
1226 1226
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1227
-            'disable_notification' => (bool)$disableNotification,
1227
+            'disable_notification' => (bool) $disableNotification,
1228 1228
             'parse_mode' => $parseMode
1229 1229
         ]));
1230 1230
     }
@@ -1263,7 +1263,7 @@  discard block
 block discarded – undo
1263 1263
             'message_thread_id' => $messageThreadId,
1264 1264
             'reply_to_message_id' => $replyToMessageId,
1265 1265
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1266
-            'disable_notification' => (bool)$disableNotification,
1266
+            'disable_notification' => (bool) $disableNotification,
1267 1267
             'parse_mode' => $parseMode
1268 1268
         ]));
1269 1269
     }
@@ -1285,7 +1285,7 @@  discard block
 block discarded – undo
1285 1285
      */
1286 1286
     public function getFile($fileId)
1287 1287
     {
1288
-        return File::fromResponse($this->call('getFile', ['file_id' => $fileId]));
1288
+        return File::fromResponse($this->call('getFile', [ 'file_id' => $fileId ]));
1289 1289
     }
1290 1290
 
1291 1291
     /**
@@ -1305,7 +1305,7 @@  discard block
 block discarded – undo
1305 1305
             CURLOPT_HEADER => 0,
1306 1306
             CURLOPT_HTTPGET => 1,
1307 1307
             CURLOPT_RETURNTRANSFER => 1,
1308
-            CURLOPT_URL => $this->getFileUrl().'/'.$file->getFilePath(),
1308
+            CURLOPT_URL => $this->getFileUrl() . '/' . $file->getFilePath(),
1309 1309
         ];
1310 1310
 
1311 1311
         return $this->executeCurl($options);
@@ -1335,7 +1335,7 @@  discard block
 block discarded – undo
1335 1335
         $switchPmText = null,
1336 1336
         $switchPmParameter = null
1337 1337
     ) {
1338
-        $results = array_map(function ($item) {
1338
+        $results = array_map(function($item) {
1339 1339
             /* @var AbstractInlineQueryResult $item */
1340 1340
             return json_decode($item->toJson(), true);
1341 1341
         }, $results);
@@ -1414,7 +1414,7 @@  discard block
 block discarded – undo
1414 1414
         return $this->call('answerCallbackQuery', [
1415 1415
             'callback_query_id' => $callbackQueryId,
1416 1416
             'text' => $text,
1417
-            'show_alert' => (bool)$showAlert,
1417
+            'show_alert' => (bool) $showAlert,
1418 1418
             'url' => $url,
1419 1419
             'cache_time' => $cacheTime
1420 1420
         ]);
@@ -1616,7 +1616,7 @@  discard block
 block discarded – undo
1616 1616
      */
1617 1617
     public function getUrl()
1618 1618
     {
1619
-        return self::URL_PREFIX.$this->token;
1619
+        return self::URL_PREFIX . $this->token;
1620 1620
     }
1621 1621
 
1622 1622
     /**
@@ -1624,7 +1624,7 @@  discard block
 block discarded – undo
1624 1624
      */
1625 1625
     public function getFileUrl()
1626 1626
     {
1627
-        return self::FILE_URL_PREFIX.$this->token;
1627
+        return self::FILE_URL_PREFIX . $this->token;
1628 1628
     }
1629 1629
 
1630 1630
     /**
@@ -1636,7 +1636,7 @@  discard block
 block discarded – undo
1636 1636
     public function trackUpdate(Update $update, $eventName = 'Message')
1637 1637
     {
1638 1638
         if (!in_array($update->getUpdateId(), $this->trackedEvents)) {
1639
-            $this->trackedEvents[] = $update->getUpdateId();
1639
+            $this->trackedEvents[ ] = $update->getUpdateId();
1640 1640
 
1641 1641
             $this->track($update->getMessage(), $eventName);
1642 1642
 
@@ -1738,10 +1738,10 @@  discard block
 block discarded – undo
1738 1738
             'need_shipping_address' => $needShippingAddress,
1739 1739
             'reply_to_message_id' => $replyToMessageId,
1740 1740
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1741
-            'disable_notification' => (bool)$disableNotification,
1741
+            'disable_notification' => (bool) $disableNotification,
1742 1742
             'provider_data' => $providerData,
1743
-            'send_phone_number_to_provider' => (bool)$sendPhoneNumberToProvider,
1744
-            'send_email_to_provider' => (bool)$sendEmailToProvider
1743
+            'send_phone_number_to_provider' => (bool) $sendPhoneNumberToProvider,
1744
+            'send_email_to_provider' => (bool) $sendEmailToProvider
1745 1745
         ]));
1746 1746
     }
1747 1747
 
@@ -1758,11 +1758,11 @@  discard block
 block discarded – undo
1758 1758
      * @return bool
1759 1759
      * @throws Exception
1760 1760
      */
1761
-    public function answerShippingQuery($shippingQueryId, $ok = true, $shipping_options = [], $errorMessage = null)
1761
+    public function answerShippingQuery($shippingQueryId, $ok = true, $shipping_options = [ ], $errorMessage = null)
1762 1762
     {
1763 1763
         return $this->call('answerShippingQuery', [
1764 1764
             'shipping_query_id' => $shippingQueryId,
1765
-            'ok' => (bool)$ok,
1765
+            'ok' => (bool) $ok,
1766 1766
             'shipping_options' => json_encode($shipping_options),
1767 1767
             'error_message' => $errorMessage
1768 1768
         ]);
@@ -1783,7 +1783,7 @@  discard block
 block discarded – undo
1783 1783
     {
1784 1784
         return $this->call('answerPreCheckoutQuery', [
1785 1785
             'pre_checkout_query_id' => $preCheckoutQueryId,
1786
-            'ok' => (bool)$ok,
1786
+            'ok' => (bool) $ok,
1787 1787
             'error_message' => $errorMessage
1788 1788
         ]);
1789 1789
     }
@@ -2142,7 +2142,7 @@  discard block
 block discarded – undo
2142 2142
             'message_thread_id' => $messageThreadId,
2143 2143
             'reply_to_message_id' => $replyToMessageId,
2144 2144
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
2145
-            'disable_notification' => (bool)$disableNotification
2145
+            'disable_notification' => (bool) $disableNotification
2146 2146
         ]));
2147 2147
     }
2148 2148
 
@@ -2170,8 +2170,8 @@  discard block
 block discarded – undo
2170 2170
             'chat_id' => $chatId,
2171 2171
             'media' => $media->toJson(),
2172 2172
             'message_thread_id' => $messageThreadId,
2173
-            'reply_to_message_id' => (int)$replyToMessageId,
2174
-            'disable_notification' => (bool)$disableNotification
2173
+            'reply_to_message_id' => (int) $replyToMessageId,
2174
+            'disable_notification' => (bool) $disableNotification
2175 2175
         ]));
2176 2176
     }
2177 2177
 
@@ -2185,7 +2185,7 @@  discard block
 block discarded – undo
2185 2185
     public function setProxy($proxyString = '', $socks5 = false)
2186 2186
     {
2187 2187
         if (empty($proxyString)) {
2188
-            $this->proxySettings = [];
2188
+            $this->proxySettings = [ ];
2189 2189
             return $this;
2190 2190
         }
2191 2191
 
@@ -2195,7 +2195,7 @@  discard block
 block discarded – undo
2195 2195
         ];
2196 2196
 
2197 2197
         if ($socks5) {
2198
-            $this->proxySettings[CURLOPT_PROXYTYPE] = CURLPROXY_SOCKS5;
2198
+            $this->proxySettings[ CURLOPT_PROXYTYPE ] = CURLPROXY_SOCKS5;
2199 2199
         }
2200 2200
         return $this;
2201 2201
     }
@@ -2492,7 +2492,7 @@  discard block
 block discarded – undo
2492 2492
      */
2493 2493
     public function setCurlOption($option, $value)
2494 2494
     {
2495
-        $this->customCurlOptions[$option] = $value;
2495
+        $this->customCurlOptions[ $option ] = $value;
2496 2496
     }
2497 2497
 
2498 2498
     /**
@@ -2502,7 +2502,7 @@  discard block
 block discarded – undo
2502 2502
      */
2503 2503
     public function unsetCurlOption($option)
2504 2504
     {
2505
-        unset($this->customCurlOptions[$option]);
2505
+        unset($this->customCurlOptions[ $option ]);
2506 2506
     }
2507 2507
 
2508 2508
     /**
@@ -2510,6 +2510,6 @@  discard block
 block discarded – undo
2510 2510
      */
2511 2511
     public function resetCurlOptions()
2512 2512
     {
2513
-        $this->customCurlOptions = [];
2513
+        $this->customCurlOptions = [ ];
2514 2514
     }
2515 2515
 }
Please login to merge, or discard this patch.
src/Types/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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}
Please login to merge, or discard this patch.
src/Types/ReplyKeyboardMarkup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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}
Please login to merge, or discard this patch.
src/Types/CallbackQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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}
Please login to merge, or discard this patch.
src/Types/ChatMember.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      *
12 12
      * @var array
13 13
      */
14
-    protected static $requiredParams = ['user', 'status'];
14
+    protected static $requiredParams = [ 'user', 'status' ];
15 15
 
16 16
     /**
17 17
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Types/PollOption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      *
19 19
      * @var array
20 20
      */
21
-    protected static $requiredParams = ['text', 'voter_count'];
21
+    protected static $requiredParams = [ 'text', 'voter_count' ];
22 22
 
23 23
     /**
24 24
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Types/ChatPhoto.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      *
12 12
      * @var array
13 13
      */
14
-    protected static $requiredParams = ['small_file_id', 'big_file_id'];
14
+    protected static $requiredParams = [ 'small_file_id', 'big_file_id' ];
15 15
 
16 16
     /**
17 17
      * {@inheritdoc}
Please login to merge, or discard this patch.