Completed
Push — master ( 471bbc...9248db )
by Carlos
06:01 queued 02:21
created
src/Payment/MerchantPay/API.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,6 @@  discard block
 block discarded – undo
77 77
      * Send MerchantPay.
78 78
      *
79 79
      * @param array  $params
80
-     * @param string $type
81 80
      *
82 81
      * @return \EasyWeChat\Support\Collection
83 82
      */
@@ -137,7 +136,7 @@  discard block
 block discarded – undo
137 136
     /**
138 137
      * Parse Response XML to array.
139 138
      *
140
-     * @param \Psr\Http\Message\ResponseInterface|string $response
139
+     * @param ResponseInterface $response
141 140
      *
142 141
      * @return \EasyWeChat\Support\Collection
143 142
      */
Please login to merge, or discard this patch.
src/Payment/API.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -418,7 +418,7 @@
 block discarded – undo
418 418
     /**
419 419
      * Parse Response XML to array.
420 420
      *
421
-     * @param string|\Psr\Http\Message\ResponseInterface $response
421
+     * @param ResponseInterface $response
422 422
      *
423 423
      * @return \EasyWeChat\Support\Collection
424 424
      */
Please login to merge, or discard this patch.
src/Notice/Notice.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @param int $industryOne
81 81
      * @param int $industryTwo
82 82
      *
83
-     * @return bool
83
+     * @return \EasyWeChat\Support\Collection
84 84
      */
85 85
     public function setIndustry($industryOne, $industryTwo)
86 86
     {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * Get industry.
97 97
      *
98
-     * @return array
98
+     * @return \EasyWeChat\Support\Collection
99 99
      */
100 100
     public function getIndustry()
101 101
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *
109 109
      * @param string $shortId
110 110
      *
111
-     * @return string
111
+     * @return \EasyWeChat\Support\Collection
112 112
      */
113 113
     public function addTemplate($shortId)
114 114
     {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * Get all private template.
122 122
      *
123
-     * @return array
123
+     * @return \EasyWeChat\Support\Collection
124 124
      */
125 125
     public function getAllPrivateTemplate()
126 126
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      *
134 134
      * @param int $templateId
135 135
      * 
136
-     * @return array
136
+     * @return \EasyWeChat\Support\Collection
137 137
      */
138 138
     public function delPrivateTemplate($templateId)
139 139
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      *
147 147
      * @param $data
148 148
      *
149
-     * @return mixed
149
+     * @return \EasyWeChat\Support\Collection
150 150
      *
151 151
      * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException
152 152
      */
Please login to merge, or discard this patch.
src/Support/XML.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@
 block discarded – undo
91 91
     /**
92 92
      * Object to array.
93 93
      *
94
-     * @param string $data
95 94
      *
95
+     * @param SimpleXMLElement $obj
96 96
      * @return array
97 97
      */
98 98
     protected static function normalize($obj)
Please login to merge, or discard this patch.
src/Staff/Session.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @param string $account
40 40
      *
41
-     * @return array
41
+     * @return \EasyWeChat\Support\Collection
42 42
      */
43 43
     public function lists($account)
44 44
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * List all waiters of $account.
50 50
      *
51
-     * @return array
51
+     * @return \EasyWeChat\Support\Collection
52 52
      */
53 53
     public function waiters()
54 54
     {
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
      * Create a session.
60 60
      *
61 61
      * @param string $account
62
-     * @param string $openid
62
+     * @param string $openId
63 63
      *
64
-     * @return bool
64
+     * @return \EasyWeChat\Support\Collection
65 65
      */
66 66
     public function create($account, $openId)
67 67
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @param string $account
80 80
      * @param string $openId
81 81
      *
82
-     * @return bool
82
+     * @return \EasyWeChat\Support\Collection
83 83
      */
84 84
     public function close($account, $openId)
85 85
     {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @param string $openId
98 98
      *
99
-     * @return bool
99
+     * @return \EasyWeChat\Support\Collection
100 100
      */
101 101
     public function get($openId)
102 102
     {
Please login to merge, or discard this patch.
src/Card/Card.php 1 patch
Doc Comments   +35 added lines, -36 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * 获取卡券颜色.
78 78
      *
79
-     * @return array
79
+     * @return \EasyWeChat\Support\Collection
80 80
      */
81 81
     public function getColors()
82 82
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param array  $especial
92 92
      * @param array  $advancedInfo
93 93
      *
94
-     * @return bool|array
94
+     * @return \EasyWeChat\Support\Collection
95 95
      */
96 96
     public function create($cardType = 'member_card', array $baseInfo = [], array $especial = [], array $advancedInfo = [])
97 97
     {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @param array $cards
112 112
      *
113
-     * @return array|bool
113
+     * @return \EasyWeChat\Support\Collection
114 114
      */
115 115
     public function QRCode(array $cards = [])
116 116
     {
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      *                          SCENE_H5 h5页面,SCENE_IVR 自动回复,SCENE_CARD_CUSTOM_CELL 卡券自定义cell]
251 251
      * @param array  $cardList
252 252
      *
253
-     * @return array
253
+     * @return \EasyWeChat\Support\Collection
254 254
      */
255 255
     public function createLandingPage($banner, $pageTitle, $canShare, $scene, $cardList)
256 256
     {
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      * @param string $cardId
272 272
      * @param array  $code
273 273
      *
274
-     * @return array
274
+     * @return \EasyWeChat\Support\Collection
275 275
      */
276 276
     public function deposit($cardId, $code)
277 277
     {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      *
289 289
      * @param string $cardId
290 290
      *
291
-     * @return array
291
+     * @return \EasyWeChat\Support\Collection
292 292
      */
293 293
     public function getDepositedCount($cardId)
294 294
     {
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
      * @param string $cardId
306 306
      * @param array  $code
307 307
      *
308
-     * @return array
308
+     * @return \EasyWeChat\Support\Collection
309 309
      */
310 310
     public function checkCode($cardId, $code)
311 311
     {
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      * @param bool   $checkConsume
325 325
      * @param string $cardId
326 326
      *
327
-     * @return array
327
+     * @return \EasyWeChat\Support\Collection
328 328
      */
329 329
     public function getCode($code, $checkConsume, $cardId)
330 330
     {
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      * @param string $cardId
344 344
      * @param string $code
345 345
      *
346
-     * @return array
346
+     * @return \EasyWeChat\Support\Collection
347 347
      */
348 348
     public function consume($cardId, $code)
349 349
     {
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
      *
361 361
      * @param string $encryptedCode
362 362
      *
363
-     * @return array
363
+     * @return \EasyWeChat\Support\Collection
364 364
      */
365 365
     public function decryptCode($encryptedCode)
366 366
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      *
377 377
      * @param string $cardId
378 378
      *
379
-     * @return array
379
+     * @return \EasyWeChat\Support\Collection
380 380
      */
381 381
     public function getHtml($cardId)
382 382
     {
@@ -390,10 +390,9 @@  discard block
 block discarded – undo
390 390
     /**
391 391
      * 设置测试白名单.
392 392
      *
393
-     * @param array $openid
394
-     * @param array $username
393
+     * @param array $openids
395 394
      *
396
-     * @return array
395
+     * @return \EasyWeChat\Support\Collection
397 396
      */
398 397
     public function setTestWhitelist($openids)
399 398
     {
@@ -409,7 +408,7 @@  discard block
 block discarded – undo
409 408
      *
410 409
      * @param array $usernames
411 410
      *
412
-     * @return array
411
+     * @return \EasyWeChat\Support\Collection
413 412
      */
414 413
     public function setTestWhitelistByUsername($usernames)
415 414
     {
@@ -426,7 +425,7 @@  discard block
 block discarded – undo
426 425
      * @param string $openid
427 426
      * @param string $cardId
428 427
      *
429
-     * @return array
428
+     * @return \EasyWeChat\Support\Collection
430 429
      */
431 430
     public function getUserCards($openid, $cardId = '')
432 431
     {
@@ -443,7 +442,7 @@  discard block
 block discarded – undo
443 442
      *
444 443
      * @param string $cardId
445 444
      *
446
-     * @return array
445
+     * @return \EasyWeChat\Support\Collection
447 446
      */
448 447
     public function getCard($cardId)
449 448
     {
@@ -461,7 +460,7 @@  discard block
 block discarded – undo
461 460
      * @param int    $count
462 461
      * @param string $statusList
463 462
      *
464
-     * @return array
463
+     * @return \EasyWeChat\Support\Collection
465 464
      */
466 465
     public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK')
467 466
     {
@@ -482,7 +481,7 @@  discard block
 block discarded – undo
482 481
      * @param array  $baseInfo
483 482
      * @param array  $especial
484 483
      *
485
-     * @return array
484
+     * @return \EasyWeChat\Support\Collection
486 485
      */
487 486
     public function update($cardId, $type, $baseInfo = [], $especial = [])
488 487
     {
@@ -505,7 +504,7 @@  discard block
 block discarded – undo
505 504
      * @param string $cardId
506 505
      * @param bool   $isOpen
507 506
      *
508
-     * @return array
507
+     * @return \EasyWeChat\Support\Collection
509 508
      */
510 509
     public function setPayCell($cardId, $isOpen = true)
511 510
     {
@@ -523,7 +522,7 @@  discard block
 block discarded – undo
523 522
      * @param string $cardId
524 523
      * @param int    $amount
525 524
      *
526
-     * @return bool
525
+     * @return \EasyWeChat\Support\Collection
527 526
      */
528 527
     public function increaseStock($cardId, $amount)
529 528
     {
@@ -536,7 +535,7 @@  discard block
 block discarded – undo
536 535
      * @param string $cardId
537 536
      * @param int    $amount
538 537
      *
539
-     * @return bool
538
+     * @return \EasyWeChat\Support\Collection
540 539
      */
541 540
     public function reduceStock($cardId, $amount)
542 541
     {
@@ -550,7 +549,7 @@  discard block
 block discarded – undo
550 549
      * @param int    $amount
551 550
      * @param string $action
552 551
      *
553
-     * @return array
552
+     * @return \EasyWeChat\Support\Collection
554 553
      */
555 554
     protected function updateStock($cardId, $amount, $action = 'increase')
556 555
     {
@@ -570,7 +569,7 @@  discard block
 block discarded – undo
570 569
      * @param string $newCode
571 570
      * @param array  $cardId
572 571
      *
573
-     * @return array
572
+     * @return \EasyWeChat\Support\Collection
574 573
      */
575 574
     public function updateCode($code, $newCode, $cardId = [])
576 575
     {
@@ -588,7 +587,7 @@  discard block
 block discarded – undo
588 587
      *
589 588
      * @param string $cardId
590 589
      *
591
-     * @return array
590
+     * @return \EasyWeChat\Support\Collection
592 591
      */
593 592
     public function delete($cardId)
594 593
     {
@@ -605,7 +604,7 @@  discard block
 block discarded – undo
605 604
      * @param string $code
606 605
      * @param string $cardId
607 606
      *
608
-     * @return array
607
+     * @return \EasyWeChat\Support\Collection
609 608
      */
610 609
     public function disable($code, $cardId = '')
611 610
     {
@@ -622,7 +621,7 @@  discard block
 block discarded – undo
622 621
      *
623 622
      * @param array $info
624 623
      *
625
-     * @return array
624
+     * @return \EasyWeChat\Support\Collection
626 625
      */
627 626
     public function activate($info = [])
628 627
     {
@@ -636,7 +635,7 @@  discard block
 block discarded – undo
636 635
      * @param array  $requiredForm
637 636
      * @param array  $optionalForm
638 637
      *
639
-     * @return array
638
+     * @return \EasyWeChat\Support\Collection
640 639
      */
641 640
     public function activateUserForm($cardId, array $requiredForm = [], array $optionalForm = [])
642 641
     {
@@ -651,7 +650,7 @@  discard block
 block discarded – undo
651 650
      * @param string $cardId
652 651
      * @param string $code
653 652
      *
654
-     * @return array
653
+     * @return \EasyWeChat\Support\Collection
655 654
      */
656 655
     public function getMemberCardUser($cardId, $code)
657 656
     {
@@ -668,7 +667,7 @@  discard block
 block discarded – undo
668 667
      *
669 668
      * @param array $params
670 669
      *
671
-     * @return array
670
+     * @return \EasyWeChat\Support\Collection
672 671
      */
673 672
     public function updateMemberCardUser(array $params = [])
674 673
     {
@@ -680,7 +679,7 @@  discard block
 block discarded – undo
680 679
      *
681 680
      * @param array $info
682 681
      *
683
-     * @return array
682
+     * @return \EasyWeChat\Support\Collection
684 683
      */
685 684
     public function createSubMerchant(array $info = [])
686 685
     {
@@ -707,7 +706,7 @@  discard block
 block discarded – undo
707 706
      * @param int   $merchantId
708 707
      * @param array $info
709 708
      *
710
-     * @return array
709
+     * @return \EasyWeChat\Support\Collection
711 710
      */
712 711
     public function updateSubMerchant($merchantId, array $info = [])
713 712
     {
@@ -734,7 +733,7 @@  discard block
 block discarded – undo
734 733
      *
735 734
      * @param int $merchantId
736 735
      *
737
-     * @return array
736
+     * @return \EasyWeChat\Support\Collection
738 737
      */
739 738
     public function getSubMerchant($merchantId)
740 739
     {
@@ -748,7 +747,7 @@  discard block
 block discarded – undo
748 747
      * @param int    $limit
749 748
      * @param string $status
750 749
      *
751
-     * @return array
750
+     * @return \EasyWeChat\Support\Collection
752 751
      */
753 752
     public function listSubMerchants($beginId = 0, $limit = 50, $status = 'CHECKING')
754 753
     {
@@ -764,7 +763,7 @@  discard block
 block discarded – undo
764 763
     /**
765 764
      * 卡券开放类目查询接口.
766 765
      *
767
-     * @return array|bool
766
+     * @return \EasyWeChat\Support\Collection
768 767
      */
769 768
     public function getCategories()
770 769
     {
@@ -800,7 +799,7 @@  discard block
 block discarded – undo
800 799
      *
801 800
      * @param string $url
802 801
      *
803
-     * @return array
802
+     * @return Card
804 803
      */
805 804
     public function setUrl($url)
806 805
     {
Please login to merge, or discard this patch.