Passed
Pull Request — master (#428)
by Alexander
01:58
created
src/Types/WebAppData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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}
Please login to merge, or discard this patch.
src/Types/ReplyKeyboardMarkup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 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}
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/BotApi.php 1 patch
Spacing   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         // Informational 1xx
50 50
         100 => 'Continue',
51 51
         101 => 'Switching Protocols',
52
-        102 => 'Processing',            // RFC2518
52
+        102 => 'Processing', // RFC2518
53 53
         // Success 2xx
54 54
         200 => 'OK',
55 55
         201 => 'Created',
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
         204 => 'No Content',
59 59
         205 => 'Reset Content',
60 60
         206 => 'Partial Content',
61
-        207 => 'Multi-Status',          // RFC4918
62
-        208 => 'Already Reported',      // RFC5842
63
-        226 => 'IM Used',               // RFC3229
61
+        207 => 'Multi-Status', // RFC4918
62
+        208 => 'Already Reported', // RFC5842
63
+        226 => 'IM Used', // RFC3229
64 64
         // Redirection 3xx
65 65
         300 => 'Multiple Choices',
66 66
         301 => 'Moved Permanently',
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         305 => 'Use Proxy',
71 71
         // 306 is deprecated but reserved
72 72
         307 => 'Temporary Redirect',
73
-        308 => 'Permanent Redirect',    // RFC7238
73
+        308 => 'Permanent Redirect', // RFC7238
74 74
         // Client Error 4xx
75 75
         400 => 'Bad Request',
76 76
         401 => 'Unauthorized',
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
         415 => 'Unsupported Media Type',
91 91
         416 => 'Range Not Satisfiable',
92 92
         417 => 'Expectation Failed',
93
-        422 => 'Unprocessable Entity',                                        // RFC4918
94
-        423 => 'Locked',                                                      // RFC4918
95
-        424 => 'Failed Dependency',                                           // RFC4918
96
-        425 => 'Reserved for WebDAV advanced collections expired proposal',   // RFC2817
97
-        426 => 'Upgrade Required',                                            // RFC2817
98
-        428 => 'Precondition Required',                                       // RFC6585
99
-        429 => 'Too Many Requests',                                           // RFC6585
100
-        431 => 'Request Header Fields Too Large',                             // RFC6585
93
+        422 => 'Unprocessable Entity', // RFC4918
94
+        423 => 'Locked', // RFC4918
95
+        424 => 'Failed Dependency', // RFC4918
96
+        425 => 'Reserved for WebDAV advanced collections expired proposal', // RFC2817
97
+        426 => 'Upgrade Required', // RFC2817
98
+        428 => 'Precondition Required', // RFC6585
99
+        429 => 'Too Many Requests', // RFC6585
100
+        431 => 'Request Header Fields Too Large', // RFC6585
101 101
         // Server Error 5xx
102 102
         500 => 'Internal Server Error',
103 103
         501 => 'Not Implemented',
@@ -105,17 +105,17 @@  discard block
 block discarded – undo
105 105
         503 => 'Service Unavailable',
106 106
         504 => 'Gateway Timeout',
107 107
         505 => 'HTTP Version Not Supported',
108
-        506 => 'Variant Also Negotiates (Experimental)',                      // RFC2295
109
-        507 => 'Insufficient Storage',                                        // RFC4918
110
-        508 => 'Loop Detected',                                               // RFC5842
111
-        510 => 'Not Extended',                                                // RFC2774
112
-        511 => 'Network Authentication Required',                             // RFC6585
108
+        506 => 'Variant Also Negotiates (Experimental)', // RFC2295
109
+        507 => 'Insufficient Storage', // RFC4918
110
+        508 => 'Loop Detected', // RFC5842
111
+        510 => 'Not Extended', // RFC2774
112
+        511 => 'Network Authentication Required', // RFC6585
113 113
     ];
114 114
 
115 115
     /**
116 116
      * @var array
117 117
      */
118
-    private $proxySettings = [];
118
+    private $proxySettings = [ ];
119 119
 
120 120
     /**
121 121
      * Default http status code
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * @var array
156 156
      */
157
-    protected $customCurlOptions = [];
157
+    protected $customCurlOptions = [ ];
158 158
 
159 159
     /**
160 160
      * Bot token
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      *
176 176
      * @var array
177 177
      */
178
-    protected $trackedEvents = [];
178
+    protected $trackedEvents = [ ];
179 179
 
180 180
     /**
181 181
      * Check whether return associative array
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     public function call($method, array $data = null, $timeout = 10)
232 232
     {
233 233
         $options = $this->proxySettings + [
234
-            CURLOPT_URL => $this->getUrl().'/'.$method,
234
+            CURLOPT_URL => $this->getUrl() . '/' . $method,
235 235
             CURLOPT_RETURNTRANSFER => true,
236 236
             CURLOPT_POST => null,
237 237
             CURLOPT_POSTFIELDS => null,
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
         ];
240 240
 
241 241
         if ($data) {
242
-            $options[CURLOPT_POST] = true;
243
-            $options[CURLOPT_POSTFIELDS] = $data;
242
+            $options[ CURLOPT_POST ] = true;
243
+            $options[ CURLOPT_POSTFIELDS ] = $data;
244 244
         }
245 245
 
246 246
         if (!empty($this->customCurlOptions)) {
@@ -250,11 +250,11 @@  discard block
 block discarded – undo
250 250
         $response = self::jsonValidate($this->executeCurl($options), $this->returnArray);
251 251
 
252 252
         if (\is_array($response)) {
253
-            if (!isset($response['ok']) || !$response['ok']) {
254
-                throw new Exception($response['description'], $response['error_code']);
253
+            if (!isset($response[ 'ok' ]) || !$response[ 'ok' ]) {
254
+                throw new Exception($response[ 'description' ], $response[ 'error_code' ]);
255 255
             }
256 256
 
257
-            return $response['result'];
257
+            return $response[ 'result' ];
258 258
         }
259 259
 
260 260
         if (!$response->ok) {
@@ -300,15 +300,15 @@  discard block
 block discarded – undo
300 300
     public static function curlValidate($curl, $response = null)
301 301
     {
302 302
         if ($response) {
303
-            $json = json_decode($response, true) ?: [];
303
+            $json = json_decode($response, true) ?: [ ];
304 304
         } else {
305
-            $json = [];
305
+            $json = [ ];
306 306
         }
307 307
         if (($httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE))
308
-            && !in_array($httpCode, [self::DEFAULT_STATUS_CODE, self::NOT_MODIFIED_STATUS_CODE])
308
+            && !in_array($httpCode, [ self::DEFAULT_STATUS_CODE, self::NOT_MODIFIED_STATUS_CODE ])
309 309
         ) {
310
-            $errorDescription = array_key_exists('description', $json) ? $json['description'] : self::$codes[$httpCode];
311
-            $errorParameters = array_key_exists('parameters', $json) ? $json['parameters'] : [];
310
+            $errorDescription = array_key_exists('description', $json) ? $json[ 'description' ] : self::$codes[ $httpCode ];
311
+            $errorParameters = array_key_exists('parameters', $json) ? $json[ 'parameters' ] : [ ];
312 312
             throw new HttpException($errorDescription, $httpCode, null, $errorParameters);
313 313
         }
314 314
     }
@@ -365,9 +365,9 @@  discard block
 block discarded – undo
365 365
             'message_thread_id' => $messageThreadId,
366 366
             'parse_mode' => $parseMode,
367 367
             'disable_web_page_preview' => $disablePreview,
368
-            'reply_to_message_id' => (int)$replyToMessageId,
368
+            'reply_to_message_id' => (int) $replyToMessageId,
369 369
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
370
-            'disable_notification' => (bool)$disableNotification,
370
+            'disable_notification' => (bool) $disableNotification,
371 371
         ]));
372 372
     }
373 373
 
@@ -405,14 +405,14 @@  discard block
 block discarded – undo
405 405
         return MessageId::fromResponse($this->call('copyMessage', [
406 406
             'chat_id' => $chatId,
407 407
             'from_chat_id' => $fromChatId,
408
-            'message_id' => (int)$messageId,
408
+            'message_id' => (int) $messageId,
409 409
             'caption' => $caption,
410 410
             'parse_mode' => $parseMode,
411 411
             'caption_entities' => $captionEntities,
412
-            'disable_notification' => (bool)$disableNotification,
412
+            'disable_notification' => (bool) $disableNotification,
413 413
             'message_thread_id' => $messageThreadId,
414
-            'reply_to_message_id' => (int)$replyToMessageId,
415
-            'allow_sending_without_reply' => (bool)$allowSendingWithoutReply,
414
+            'reply_to_message_id' => (int) $replyToMessageId,
415
+            'allow_sending_without_reply' => (bool) $allowSendingWithoutReply,
416 416
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
417 417
         ]));
418 418
     }
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
             'message_thread_id' => $messageThreadId,
451 451
             'reply_to_message_id' => $replyToMessageId,
452 452
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
453
-            'disable_notification' => (bool)$disableNotification,
453
+            'disable_notification' => (bool) $disableNotification,
454 454
         ]));
455 455
     }
456 456
 
@@ -493,9 +493,9 @@  discard block
 block discarded – undo
493 493
     public function getUserProfilePhotos($userId, $offset = 0, $limit = 100)
494 494
     {
495 495
         return UserProfilePhotos::fromResponse($this->call('getUserProfilePhotos', [
496
-            'user_id' => (int)$userId,
497
-            'offset' => (int)$offset,
498
-            'limit' => (int)$limit,
496
+            'user_id' => (int) $userId,
497
+            'offset' => (int) $offset,
498
+            'limit' => (int) $limit,
499 499
         ]));
500 500
     }
501 501
 
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
      */
561 561
     public function deleteWebhook($dropPendingUpdates = false)
562 562
     {
563
-        return $this->call('deleteWebhook', ['drop_pending_updates' => $dropPendingUpdates]);
563
+        return $this->call('deleteWebhook', [ 'drop_pending_updates' => $dropPendingUpdates ]);
564 564
     }
565 565
 
566 566
     /**
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
             'message_thread_id'    => $messageThreadId,
658 658
             'reply_to_message_id'  => $replyToMessageId,
659 659
             'reply_markup'         => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
660
-            'disable_notification' => (bool)$disableNotification,
660
+            'disable_notification' => (bool) $disableNotification,
661 661
         ]));
662 662
     }
663 663
 
@@ -771,7 +771,7 @@  discard block
 block discarded – undo
771 771
             'message_thread_id' => $messageThreadId,
772 772
             'reply_to_message_id' => $replyToMessageId,
773 773
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
774
-            'disable_notification' => (bool)$disableNotification,
774
+            'disable_notification' => (bool) $disableNotification,
775 775
         ]));
776 776
     }
777 777
 
@@ -807,9 +807,9 @@  discard block
 block discarded – undo
807 807
             'message_thread_id' => $messageThreadId,
808 808
             'reply_to_message_id' => $replyToMessageId,
809 809
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
810
-            'disable_notification' => (bool)$disableNotification,
811
-            'protect_content' => (bool)$protectContent,
812
-            'allow_sending_without_reply' => (bool)$allowSendingWithoutReply,
810
+            'disable_notification' => (bool) $disableNotification,
811
+            'protect_content' => (bool) $protectContent,
812
+            'allow_sending_without_reply' => (bool) $allowSendingWithoutReply,
813 813
         ]));
814 814
     }
815 815
 
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
      *
836 836
      * @author bernard-ng <[email protected]>
837 837
      */
838
-    public function getCustomEmojiStickers($customEmojiIds = [])
838
+    public function getCustomEmojiStickers($customEmojiIds = [ ])
839 839
     {
840 840
         return StickerSet::fromResponse($this->call('getCustomEmojiStickers', [
841 841
             'custom_emoji_ids' => $customEmojiIds,
@@ -1043,8 +1043,8 @@  discard block
 block discarded – undo
1043 1043
             'message_thread_id' => $messageThreadId,
1044 1044
             'reply_to_message_id' => $replyToMessageId,
1045 1045
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1046
-            'disable_notification' => (bool)$disableNotification,
1047
-            'supports_streaming' => (bool)$supportsStreaming,
1046
+            'disable_notification' => (bool) $disableNotification,
1047
+            'supports_streaming' => (bool) $supportsStreaming,
1048 1048
             'parse_mode' => $parseMode
1049 1049
         ]));
1050 1050
     }
@@ -1087,7 +1087,7 @@  discard block
 block discarded – undo
1087 1087
             'message_thread_id' => $messageThreadId,
1088 1088
             'reply_to_message_id' => $replyToMessageId,
1089 1089
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1090
-            'disable_notification' => (bool)$disableNotification,
1090
+            'disable_notification' => (bool) $disableNotification,
1091 1091
             'parse_mode' => $parseMode
1092 1092
         ]));
1093 1093
     }
@@ -1136,7 +1136,7 @@  discard block
 block discarded – undo
1136 1136
             'message_thread_id' => $messageThreadId,
1137 1137
             'reply_to_message_id' => $replyToMessageId,
1138 1138
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1139
-            'disable_notification' => (bool)$disableNotification,
1139
+            'disable_notification' => (bool) $disableNotification,
1140 1140
             'allow_sending_without_reply' => $allowSendingWithoutReply,
1141 1141
             'parse_mode' => $parseMode
1142 1142
         ]));
@@ -1172,7 +1172,7 @@  discard block
 block discarded – undo
1172 1172
             'message_id' => $messageId,
1173 1173
             'message_thread_id' => $messageThreadId,
1174 1174
             'protect_content' => $protectContent,
1175
-            'disable_notification' => (bool)$disableNotification,
1175
+            'disable_notification' => (bool) $disableNotification,
1176 1176
         ]));
1177 1177
     }
1178 1178
 
@@ -1225,7 +1225,7 @@  discard block
 block discarded – undo
1225 1225
             'title' => $title,
1226 1226
             'reply_to_message_id' => $replyToMessageId,
1227 1227
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1228
-            'disable_notification' => (bool)$disableNotification,
1228
+            'disable_notification' => (bool) $disableNotification,
1229 1229
             'parse_mode' => $parseMode
1230 1230
         ]));
1231 1231
     }
@@ -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
     }
@@ -1302,7 +1302,7 @@  discard block
 block discarded – undo
1302 1302
             'message_thread_id' => $messageThreadId,
1303 1303
             'reply_to_message_id' => $replyToMessageId,
1304 1304
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1305
-            'disable_notification' => (bool)$disableNotification,
1305
+            'disable_notification' => (bool) $disableNotification,
1306 1306
             'parse_mode' => $parseMode
1307 1307
         ]));
1308 1308
     }
@@ -1324,7 +1324,7 @@  discard block
 block discarded – undo
1324 1324
      */
1325 1325
     public function getFile($fileId)
1326 1326
     {
1327
-        return File::fromResponse($this->call('getFile', ['file_id' => $fileId]));
1327
+        return File::fromResponse($this->call('getFile', [ 'file_id' => $fileId ]));
1328 1328
     }
1329 1329
 
1330 1330
     /**
@@ -1344,7 +1344,7 @@  discard block
 block discarded – undo
1344 1344
             CURLOPT_HEADER => 0,
1345 1345
             CURLOPT_HTTPGET => 1,
1346 1346
             CURLOPT_RETURNTRANSFER => 1,
1347
-            CURLOPT_URL => $this->getFileUrl().'/'.$file->getFilePath(),
1347
+            CURLOPT_URL => $this->getFileUrl() . '/' . $file->getFilePath(),
1348 1348
         ];
1349 1349
 
1350 1350
         return $this->executeCurl($options);
@@ -1379,7 +1379,7 @@  discard block
 block discarded – undo
1379 1379
              * @param AbstractInlineQueryResult $item
1380 1380
              * @return array
1381 1381
              */
1382
-            function ($item) {
1382
+            function($item) {
1383 1383
                 /** @var array $array */
1384 1384
                 $array = $item->toJson(true);
1385 1385
 
@@ -1462,7 +1462,7 @@  discard block
 block discarded – undo
1462 1462
         return $this->call('answerCallbackQuery', [
1463 1463
             'callback_query_id' => $callbackQueryId,
1464 1464
             'text' => $text,
1465
-            'show_alert' => (bool)$showAlert,
1465
+            'show_alert' => (bool) $showAlert,
1466 1466
             'url' => $url,
1467 1467
             'cache_time' => $cacheTime
1468 1468
         ]);
@@ -1693,7 +1693,7 @@  discard block
 block discarded – undo
1693 1693
      */
1694 1694
     public function getUrl()
1695 1695
     {
1696
-        return self::URL_PREFIX.$this->token;
1696
+        return self::URL_PREFIX . $this->token;
1697 1697
     }
1698 1698
 
1699 1699
     /**
@@ -1701,7 +1701,7 @@  discard block
 block discarded – undo
1701 1701
      */
1702 1702
     public function getFileUrl()
1703 1703
     {
1704
-        return self::FILE_URL_PREFIX.$this->token;
1704
+        return self::FILE_URL_PREFIX . $this->token;
1705 1705
     }
1706 1706
 
1707 1707
     /**
@@ -1719,7 +1719,7 @@  discard block
 block discarded – undo
1719 1719
             if (!$message) {
1720 1720
                 return;
1721 1721
             }
1722
-            $this->trackedEvents[] = $update->getUpdateId();
1722
+            $this->trackedEvents[ ] = $update->getUpdateId();
1723 1723
 
1724 1724
             $this->track($message, $eventName);
1725 1725
 
@@ -1824,10 +1824,10 @@  discard block
 block discarded – undo
1824 1824
             'message_thread_id' => $messageThreadId,
1825 1825
             'reply_to_message_id' => $replyToMessageId,
1826 1826
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1827
-            'disable_notification' => (bool)$disableNotification,
1827
+            'disable_notification' => (bool) $disableNotification,
1828 1828
             'provider_data' => $providerData,
1829
-            'send_phone_number_to_provider' => (bool)$sendPhoneNumberToProvider,
1830
-            'send_email_to_provider' => (bool)$sendEmailToProvider
1829
+            'send_phone_number_to_provider' => (bool) $sendPhoneNumberToProvider,
1830
+            'send_email_to_provider' => (bool) $sendEmailToProvider
1831 1831
         ]));
1832 1832
     }
1833 1833
 
@@ -1844,11 +1844,11 @@  discard block
 block discarded – undo
1844 1844
      * @return bool
1845 1845
      * @throws Exception
1846 1846
      */
1847
-    public function answerShippingQuery($shippingQueryId, $ok = true, $shippingOptions = [], $errorMessage = null)
1847
+    public function answerShippingQuery($shippingQueryId, $ok = true, $shippingOptions = [ ], $errorMessage = null)
1848 1848
     {
1849 1849
         return $this->call('answerShippingQuery', [
1850 1850
             'shipping_query_id' => $shippingQueryId,
1851
-            'ok' => (bool)$ok,
1851
+            'ok' => (bool) $ok,
1852 1852
             'shipping_options' => json_encode($shippingOptions),
1853 1853
             'error_message' => $errorMessage
1854 1854
         ]);
@@ -1869,7 +1869,7 @@  discard block
 block discarded – undo
1869 1869
     {
1870 1870
         return $this->call('answerPreCheckoutQuery', [
1871 1871
             'pre_checkout_query_id' => $preCheckoutQueryId,
1872
-            'ok' => (bool)$ok,
1872
+            'ok' => (bool) $ok,
1873 1873
             'error_message' => $errorMessage
1874 1874
         ]);
1875 1875
     }
@@ -2228,7 +2228,7 @@  discard block
 block discarded – undo
2228 2228
             'message_thread_id' => $messageThreadId,
2229 2229
             'reply_to_message_id' => $replyToMessageId,
2230 2230
             'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
2231
-            'disable_notification' => (bool)$disableNotification
2231
+            'disable_notification' => (bool) $disableNotification
2232 2232
         ]));
2233 2233
     }
2234 2234
 
@@ -2256,8 +2256,8 @@  discard block
 block discarded – undo
2256 2256
             'chat_id' => $chatId,
2257 2257
             'media' => $media->toJson(),
2258 2258
             'message_thread_id' => $messageThreadId,
2259
-            'reply_to_message_id' => (int)$replyToMessageId,
2260
-            'disable_notification' => (bool)$disableNotification
2259
+            'reply_to_message_id' => (int) $replyToMessageId,
2260
+            'disable_notification' => (bool) $disableNotification
2261 2261
         ]));
2262 2262
     }
2263 2263
 
@@ -2272,7 +2272,7 @@  discard block
 block discarded – undo
2272 2272
     public function setProxy($proxyString = '', $socks5 = false)
2273 2273
     {
2274 2274
         if (empty($proxyString)) {
2275
-            $this->proxySettings = [];
2275
+            $this->proxySettings = [ ];
2276 2276
             return $this;
2277 2277
         }
2278 2278
 
@@ -2282,7 +2282,7 @@  discard block
 block discarded – undo
2282 2282
         ];
2283 2283
 
2284 2284
         if ($socks5) {
2285
-            $this->proxySettings[CURLOPT_PROXYTYPE] = CURLPROXY_SOCKS5;
2285
+            $this->proxySettings[ CURLOPT_PROXYTYPE ] = CURLPROXY_SOCKS5;
2286 2286
         }
2287 2287
         return $this;
2288 2288
     }
@@ -2598,7 +2598,7 @@  discard block
 block discarded – undo
2598 2598
      */
2599 2599
     public function setCurlOption($option, $value)
2600 2600
     {
2601
-        $this->customCurlOptions[$option] = $value;
2601
+        $this->customCurlOptions[ $option ] = $value;
2602 2602
     }
2603 2603
 
2604 2604
     /**
@@ -2610,7 +2610,7 @@  discard block
 block discarded – undo
2610 2610
      */
2611 2611
     public function unsetCurlOption($option)
2612 2612
     {
2613
-        unset($this->customCurlOptions[$option]);
2613
+        unset($this->customCurlOptions[ $option ]);
2614 2614
     }
2615 2615
 
2616 2616
     /**
@@ -2620,6 +2620,6 @@  discard block
 block discarded – undo
2620 2620
      */
2621 2621
     public function resetCurlOptions()
2622 2622
     {
2623
-        $this->customCurlOptions = [];
2623
+        $this->customCurlOptions = [ ];
2624 2624
     }
2625 2625
 }
Please login to merge, or discard this patch.