Passed
Push — master ( 58897c...6910c8 )
by Alexander
06:09 queued 12s
created
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
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     public function call($method, array $data = null, $timeout = 10)
225 225
     {
226 226
         $options = $this->proxySettings + [
227
-            CURLOPT_URL => $this->getUrl().'/'.$method,
227
+            CURLOPT_URL => $this->getUrl() . '/' . $method,
228 228
             CURLOPT_RETURNTRANSFER => true,
229 229
             CURLOPT_POST => null,
230 230
             CURLOPT_POSTFIELDS => null,
@@ -232,8 +232,8 @@  discard block
 block discarded – undo
232 232
         ];
233 233
 
234 234
         if ($data) {
235
-            $options[CURLOPT_POST] = true;
236
-            $options[CURLOPT_POSTFIELDS] = $data;
235
+            $options[ CURLOPT_POST ] = true;
236
+            $options[ CURLOPT_POSTFIELDS ] = $data;
237 237
         }
238 238
 
239 239
         if (!empty($this->customCurlOptions) && is_array($this->customCurlOptions)) {
@@ -243,11 +243,11 @@  discard block
 block discarded – undo
243 243
         $response = self::jsonValidate($this->executeCurl($options), $this->returnArray);
244 244
 
245 245
         if ($this->returnArray) {
246
-            if (!isset($response['ok']) || !$response['ok']) {
247
-                throw new Exception($response['description'], $response['error_code']);
246
+            if (!isset($response[ 'ok' ]) || !$response[ 'ok' ]) {
247
+                throw new Exception($response[ 'description' ], $response[ 'error_code' ]);
248 248
             }
249 249
 
250
-            return $response['result'];
250
+            return $response[ 'result' ];
251 251
         }
252 252
 
253 253
         if (!$response->ok) {
@@ -288,12 +288,12 @@  discard block
 block discarded – undo
288 288
      */
289 289
     public static function curlValidate($curl, $response = null)
290 290
     {
291
-        $json = json_decode($response, true)?: [];
291
+        $json = json_decode($response, true) ?: [ ];
292 292
         if (($httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE))
293
-            && !in_array($httpCode, [self::DEFAULT_STATUS_CODE, self::NOT_MODIFIED_STATUS_CODE])
293
+            && !in_array($httpCode, [ self::DEFAULT_STATUS_CODE, self::NOT_MODIFIED_STATUS_CODE ])
294 294
         ) {
295
-            $errorDescription = array_key_exists('description', $json) ? $json['description'] : self::$codes[$httpCode];
296
-            $errorParameters = array_key_exists('parameters', $json) ? $json['parameters'] : [];
295
+            $errorDescription = array_key_exists('description', $json) ? $json[ 'description' ] : self::$codes[ $httpCode ];
296
+            $errorParameters = array_key_exists('parameters', $json) ? $json[ 'parameters' ] : [ ];
297 297
             throw new HttpException($errorDescription, $httpCode, null, $errorParameters);
298 298
         }
299 299
     }
@@ -350,9 +350,9 @@  discard block
 block discarded – undo
350 350
             'message_thread_id' => $messageThreadId,
351 351
             'parse_mode' => $parseMode,
352 352
             'disable_web_page_preview' => $disablePreview,
353
-            'reply_to_message_id' => (int)$replyToMessageId,
353
+            'reply_to_message_id' => (int) $replyToMessageId,
354 354
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
355
-            'disable_notification' => (bool)$disableNotification,
355
+            'disable_notification' => (bool) $disableNotification,
356 356
         ]));
357 357
     }
358 358
 
@@ -390,14 +390,14 @@  discard block
 block discarded – undo
390 390
         return Message::fromResponse($this->call('copyMessage', [
391 391
             'chat_id' => $chatId,
392 392
             'from_chat_id' => $fromChatId,
393
-            'message_id' => (int)$messageId,
393
+            'message_id' => (int) $messageId,
394 394
             'caption' => $caption,
395 395
             'parse_mode' => $parseMode,
396 396
             'caption_entities' => $captionEntities,
397
-            'disable_notification' => (bool)$disableNotification,
397
+            'disable_notification' => (bool) $disableNotification,
398 398
             'message_thread_id' => $messageThreadId,
399
-            'reply_to_message_id' => (int)$replyToMessageId,
400
-            'allow_sending_without_reply' => (bool)$allowSendingWithoutReply,
399
+            'reply_to_message_id' => (int) $replyToMessageId,
400
+            'allow_sending_without_reply' => (bool) $allowSendingWithoutReply,
401 401
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
402 402
         ]));
403 403
     }
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
             'message_thread_id' => $messageThreadId,
436 436
             'reply_to_message_id' => $replyToMessageId,
437 437
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
438
-            'disable_notification' => (bool)$disableNotification,
438
+            'disable_notification' => (bool) $disableNotification,
439 439
         ]));
440 440
     }
441 441
 
@@ -478,9 +478,9 @@  discard block
 block discarded – undo
478 478
     public function getUserProfilePhotos($userId, $offset = 0, $limit = 100)
479 479
     {
480 480
         return UserProfilePhotos::fromResponse($this->call('getUserProfilePhotos', [
481
-            'user_id' => (int)$userId,
482
-            'offset' => (int)$offset,
483
-            'limit' => (int)$limit,
481
+            'user_id' => (int) $userId,
482
+            'offset' => (int) $offset,
483
+            'limit' => (int) $limit,
484 484
         ]));
485 485
     }
486 486
 
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     public function deleteWebhook($drop_pending_updates = false)
548 548
     {
549
-        return $this->call('deleteWebhook', ['drop_pending_updates' => $drop_pending_updates]);
549
+        return $this->call('deleteWebhook', [ 'drop_pending_updates' => $drop_pending_updates ]);
550 550
     }
551 551
 
552 552
     /**
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
             'message_thread_id'    => $messageThreadId,
645 645
             'reply_to_message_id'  => $replyToMessageId,
646 646
             'reply_markup'         => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
647
-            'disable_notification' => (bool)$disableNotification,
647
+            'disable_notification' => (bool) $disableNotification,
648 648
         ]));
649 649
     }
650 650
 
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
             'message_thread_id' => $messageThreadId,
747 747
             'reply_to_message_id' => $replyToMessageId,
748 748
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
749
-            'disable_notification' => (bool)$disableNotification,
749
+            'disable_notification' => (bool) $disableNotification,
750 750
         ]));
751 751
     }
752 752
 
@@ -781,9 +781,9 @@  discard block
 block discarded – undo
781 781
             'message_thread_id' => $messageThreadId,
782 782
             'reply_to_message_id' => $replyToMessageId,
783 783
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
784
-            'disable_notification' => (bool)$disableNotification,
785
-            'protect_content' => (bool)$protectContent,
786
-            'allow_sending_without_reply' => (bool)$allowSendingWithoutReply,
784
+            'disable_notification' => (bool) $disableNotification,
785
+            'protect_content' => (bool) $protectContent,
786
+            'allow_sending_without_reply' => (bool) $allowSendingWithoutReply,
787 787
         ]));
788 788
     }
789 789
 
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
      *
810 810
      * @author bernard-ng <[email protected]>
811 811
      */
812
-    public function getCustomEmojiStickers($customEmojiIds = [])
812
+    public function getCustomEmojiStickers($customEmojiIds = [ ])
813 813
     {
814 814
         return StickerSet::fromResponse($this->call('getCustomEmojiStickers', [
815 815
             'custom_emoji_ids' => $customEmojiIds,
@@ -1006,8 +1006,8 @@  discard block
 block discarded – undo
1006 1006
             'message_thread_id' => $messageThreadId,
1007 1007
             'reply_to_message_id' => $replyToMessageId,
1008 1008
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1009
-            'disable_notification' => (bool)$disableNotification,
1010
-            'supports_streaming' => (bool)$supportsStreaming,
1009
+            'disable_notification' => (bool) $disableNotification,
1010
+            'supports_streaming' => (bool) $supportsStreaming,
1011 1011
             'parse_mode' => $parseMode
1012 1012
         ]));
1013 1013
     }
@@ -1050,7 +1050,7 @@  discard block
 block discarded – undo
1050 1050
             'message_thread_id' => $messageThreadId,
1051 1051
             'reply_to_message_id' => $replyToMessageId,
1052 1052
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1053
-            'disable_notification' => (bool)$disableNotification,
1053
+            'disable_notification' => (bool) $disableNotification,
1054 1054
             'parse_mode' => $parseMode
1055 1055
         ]));
1056 1056
     }
@@ -1099,7 +1099,7 @@  discard block
 block discarded – undo
1099 1099
             'message_thread_id' => $messageThreadId,
1100 1100
             'reply_to_message_id' => $replyToMessageId,
1101 1101
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1102
-            'disable_notification' => (bool)$disableNotification,
1102
+            'disable_notification' => (bool) $disableNotification,
1103 1103
             'allow_sending_without_reply' => $allowSendingWithoutReply,
1104 1104
             'parse_mode' => $parseMode
1105 1105
         ]));
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
             'message_id' => $messageId,
1136 1136
             'message_thread_id' => $messageThreadId,
1137 1137
             'protect_content' => $protectContent,
1138
-            'disable_notification' => (bool)$disableNotification,
1138
+            'disable_notification' => (bool) $disableNotification,
1139 1139
         ]));
1140 1140
     }
1141 1141
 
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
             'title' => $title,
1189 1189
             'reply_to_message_id' => $replyToMessageId,
1190 1190
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1191
-            'disable_notification' => (bool)$disableNotification,
1191
+            'disable_notification' => (bool) $disableNotification,
1192 1192
             'parse_mode' => $parseMode
1193 1193
         ]));
1194 1194
     }
@@ -1226,7 +1226,7 @@  discard block
 block discarded – undo
1226 1226
             'message_thread_id' => $messageThreadId,
1227 1227
             'reply_to_message_id' => $replyToMessageId,
1228 1228
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1229
-            'disable_notification' => (bool)$disableNotification,
1229
+            'disable_notification' => (bool) $disableNotification,
1230 1230
             'parse_mode' => $parseMode
1231 1231
         ]));
1232 1232
     }
@@ -1265,7 +1265,7 @@  discard block
 block discarded – undo
1265 1265
             'message_thread_id' => $messageThreadId,
1266 1266
             'reply_to_message_id' => $replyToMessageId,
1267 1267
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1268
-            'disable_notification' => (bool)$disableNotification,
1268
+            'disable_notification' => (bool) $disableNotification,
1269 1269
             'parse_mode' => $parseMode
1270 1270
         ]));
1271 1271
     }
@@ -1287,7 +1287,7 @@  discard block
 block discarded – undo
1287 1287
      */
1288 1288
     public function getFile($fileId)
1289 1289
     {
1290
-        return File::fromResponse($this->call('getFile', ['file_id' => $fileId]));
1290
+        return File::fromResponse($this->call('getFile', [ 'file_id' => $fileId ]));
1291 1291
     }
1292 1292
 
1293 1293
     /**
@@ -1307,7 +1307,7 @@  discard block
 block discarded – undo
1307 1307
             CURLOPT_HEADER => 0,
1308 1308
             CURLOPT_HTTPGET => 1,
1309 1309
             CURLOPT_RETURNTRANSFER => 1,
1310
-            CURLOPT_URL => $this->getFileUrl().'/'.$file->getFilePath(),
1310
+            CURLOPT_URL => $this->getFileUrl() . '/' . $file->getFilePath(),
1311 1311
         ];
1312 1312
 
1313 1313
         return $this->executeCurl($options);
@@ -1337,7 +1337,7 @@  discard block
 block discarded – undo
1337 1337
         $switchPmText = null,
1338 1338
         $switchPmParameter = null
1339 1339
     ) {
1340
-        $results = array_map(function ($item) {
1340
+        $results = array_map(function($item) {
1341 1341
             /* @var AbstractInlineQueryResult $item */
1342 1342
             return json_decode($item->toJson(), true);
1343 1343
         }, $results);
@@ -1416,7 +1416,7 @@  discard block
 block discarded – undo
1416 1416
         return $this->call('answerCallbackQuery', [
1417 1417
             'callback_query_id' => $callbackQueryId,
1418 1418
             'text' => $text,
1419
-            'show_alert' => (bool)$showAlert,
1419
+            'show_alert' => (bool) $showAlert,
1420 1420
             'url' => $url,
1421 1421
             'cache_time' => $cacheTime
1422 1422
         ]);
@@ -1618,7 +1618,7 @@  discard block
 block discarded – undo
1618 1618
      */
1619 1619
     public function getUrl()
1620 1620
     {
1621
-        return self::URL_PREFIX.$this->token;
1621
+        return self::URL_PREFIX . $this->token;
1622 1622
     }
1623 1623
 
1624 1624
     /**
@@ -1626,7 +1626,7 @@  discard block
 block discarded – undo
1626 1626
      */
1627 1627
     public function getFileUrl()
1628 1628
     {
1629
-        return self::FILE_URL_PREFIX.$this->token;
1629
+        return self::FILE_URL_PREFIX . $this->token;
1630 1630
     }
1631 1631
 
1632 1632
     /**
@@ -1638,7 +1638,7 @@  discard block
 block discarded – undo
1638 1638
     public function trackUpdate(Update $update, $eventName = 'Message')
1639 1639
     {
1640 1640
         if (!in_array($update->getUpdateId(), $this->trackedEvents)) {
1641
-            $this->trackedEvents[] = $update->getUpdateId();
1641
+            $this->trackedEvents[ ] = $update->getUpdateId();
1642 1642
 
1643 1643
             $this->track($update->getMessage(), $eventName);
1644 1644
 
@@ -1740,10 +1740,10 @@  discard block
 block discarded – undo
1740 1740
             'need_shipping_address' => $needShippingAddress,
1741 1741
             'reply_to_message_id' => $replyToMessageId,
1742 1742
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1743
-            'disable_notification' => (bool)$disableNotification,
1743
+            'disable_notification' => (bool) $disableNotification,
1744 1744
             'provider_data' => $providerData,
1745
-            'send_phone_number_to_provider' => (bool)$sendPhoneNumberToProvider,
1746
-            'send_email_to_provider' => (bool)$sendEmailToProvider
1745
+            'send_phone_number_to_provider' => (bool) $sendPhoneNumberToProvider,
1746
+            'send_email_to_provider' => (bool) $sendEmailToProvider
1747 1747
         ]));
1748 1748
     }
1749 1749
 
@@ -1760,11 +1760,11 @@  discard block
 block discarded – undo
1760 1760
      * @return bool
1761 1761
      * @throws Exception
1762 1762
      */
1763
-    public function answerShippingQuery($shippingQueryId, $ok = true, $shipping_options = [], $errorMessage = null)
1763
+    public function answerShippingQuery($shippingQueryId, $ok = true, $shipping_options = [ ], $errorMessage = null)
1764 1764
     {
1765 1765
         return $this->call('answerShippingQuery', [
1766 1766
             'shipping_query_id' => $shippingQueryId,
1767
-            'ok' => (bool)$ok,
1767
+            'ok' => (bool) $ok,
1768 1768
             'shipping_options' => json_encode($shipping_options),
1769 1769
             'error_message' => $errorMessage
1770 1770
         ]);
@@ -1785,7 +1785,7 @@  discard block
 block discarded – undo
1785 1785
     {
1786 1786
         return $this->call('answerPreCheckoutQuery', [
1787 1787
             'pre_checkout_query_id' => $preCheckoutQueryId,
1788
-            'ok' => (bool)$ok,
1788
+            'ok' => (bool) $ok,
1789 1789
             'error_message' => $errorMessage
1790 1790
         ]);
1791 1791
     }
@@ -2144,7 +2144,7 @@  discard block
 block discarded – undo
2144 2144
             'message_thread_id' => $messageThreadId,
2145 2145
             'reply_to_message_id' => $replyToMessageId,
2146 2146
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
2147
-            'disable_notification' => (bool)$disableNotification
2147
+            'disable_notification' => (bool) $disableNotification
2148 2148
         ]));
2149 2149
     }
2150 2150
 
@@ -2172,8 +2172,8 @@  discard block
 block discarded – undo
2172 2172
             'chat_id' => $chatId,
2173 2173
             'media' => $media->toJson(),
2174 2174
             'message_thread_id' => $messageThreadId,
2175
-            'reply_to_message_id' => (int)$replyToMessageId,
2176
-            'disable_notification' => (bool)$disableNotification
2175
+            'reply_to_message_id' => (int) $replyToMessageId,
2176
+            'disable_notification' => (bool) $disableNotification
2177 2177
         ]));
2178 2178
     }
2179 2179
 
@@ -2187,7 +2187,7 @@  discard block
 block discarded – undo
2187 2187
     public function setProxy($proxyString = '', $socks5 = false)
2188 2188
     {
2189 2189
         if (empty($proxyString)) {
2190
-            $this->proxySettings = [];
2190
+            $this->proxySettings = [ ];
2191 2191
             return $this;
2192 2192
         }
2193 2193
 
@@ -2197,7 +2197,7 @@  discard block
 block discarded – undo
2197 2197
         ];
2198 2198
 
2199 2199
         if ($socks5) {
2200
-            $this->proxySettings[CURLOPT_PROXYTYPE] = CURLPROXY_SOCKS5;
2200
+            $this->proxySettings[ CURLOPT_PROXYTYPE ] = CURLPROXY_SOCKS5;
2201 2201
         }
2202 2202
         return $this;
2203 2203
     }
@@ -2497,7 +2497,7 @@  discard block
 block discarded – undo
2497 2497
      */
2498 2498
     public function setCurlOption($option, $value)
2499 2499
     {
2500
-        $this->customCurlOptions[$option] = $value;
2500
+        $this->customCurlOptions[ $option ] = $value;
2501 2501
     }
2502 2502
 
2503 2503
     /**
@@ -2507,7 +2507,7 @@  discard block
 block discarded – undo
2507 2507
      */
2508 2508
     public function unsetCurlOption($option)
2509 2509
     {
2510
-        unset($this->customCurlOptions[$option]);
2510
+        unset($this->customCurlOptions[ $option ]);
2511 2511
     }
2512 2512
 
2513 2513
     /**
@@ -2515,6 +2515,6 @@  discard block
 block discarded – undo
2515 2515
      */
2516 2516
     public function resetCurlOptions()
2517 2517
     {
2518
-        $this->customCurlOptions = [];
2518
+        $this->customCurlOptions = [ ];
2519 2519
     }
2520 2520
 }
Please login to merge, or discard this patch.