Completed
Push — master ( a679b5...bc4430 )
by Carlos
03:34
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   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * 获取卡券颜色.
77 77
      *
78
-     * @return array
78
+     * @return \EasyWeChat\Support\Collection
79 79
      */
80 80
     public function getColors()
81 81
     {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      *
120 120
      * @param array $cards
121 121
      *
122
-     * @return array|bool
122
+     * @return \EasyWeChat\Support\Collection
123 123
      */
124 124
     public function QRCode($cards = [])
125 125
     {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      *                          SCENE_H5 h5页面,SCENE_IVR 自动回复,SCENE_CARD_CUSTOM_CELL 卡券自定义cell]
252 252
      * @param array  $cardList
253 253
      *
254
-     * @return array
254
+     * @return \EasyWeChat\Support\Collection
255 255
      */
256 256
     public function createLandingPage($banner, $pageTitle, $canShare, $scene, $cardList)
257 257
     {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      * @param string $cardId
273 273
      * @param array  $code
274 274
      *
275
-     * @return array
275
+     * @return \EasyWeChat\Support\Collection
276 276
      */
277 277
     public function deposit($cardId, $code)
278 278
     {
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      *
290 290
      * @param string $cardId
291 291
      *
292
-     * @return array
292
+     * @return \EasyWeChat\Support\Collection
293 293
      */
294 294
     public function getDepositedCount($cardId)
295 295
     {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      * @param string $cardId
307 307
      * @param array  $code
308 308
      *
309
-     * @return array
309
+     * @return \EasyWeChat\Support\Collection
310 310
      */
311 311
     public function checkCode($cardId, $code)
312 312
     {
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      *
324 324
      * @param string $cardId
325 325
      *
326
-     * @return array
326
+     * @return \EasyWeChat\Support\Collection
327 327
      */
328 328
     public function getHtml($cardId)
329 329
     {
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      * @param array $openid
341 341
      * @param array $username
342 342
      *
343
-     * @return array
343
+     * @return \EasyWeChat\Support\Collection
344 344
      */
345 345
     public function setTestWhitelist($openid, $username)
346 346
     {
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
      * @param bool   $checkConsume
360 360
      * @param string $cardId
361 361
      *
362
-     * @return array
362
+     * @return \EasyWeChat\Support\Collection
363 363
      */
364 364
     public function getCode($code, $checkConsume, $cardId)
365 365
     {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
      * @param string $cardId
379 379
      * @param string $code
380 380
      *
381
-     * @return array
381
+     * @return \EasyWeChat\Support\Collection
382 382
      */
383 383
     public function consume($cardId, $code)
384 384
     {
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      *
396 396
      * @param string $encryptedCode
397 397
      *
398
-     * @return array
398
+     * @return \EasyWeChat\Support\Collection
399 399
      */
400 400
     public function decryptCode($encryptedCode)
401 401
     {
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      * @param string $openid
413 413
      * @param string $cardId
414 414
      *
415
-     * @return array
415
+     * @return \EasyWeChat\Support\Collection
416 416
      */
417 417
     public function getUserCards($openid, $cardId = '')
418 418
     {
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
      *
430 430
      * @param string $cardId
431 431
      *
432
-     * @return array
432
+     * @return \EasyWeChat\Support\Collection
433 433
      */
434 434
     public function getCard($cardId)
435 435
     {
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      * @param int    $count
448 448
      * @param string $statusList
449 449
      *
450
-     * @return array
450
+     * @return \EasyWeChat\Support\Collection
451 451
      */
452 452
     public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK')
453 453
     {
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
      * @param array  $baseInfo
469 469
      * @param array  $especial
470 470
      *
471
-     * @return array
471
+     * @return \EasyWeChat\Support\Collection
472 472
      */
473 473
     public function update($cardId, $type, $baseInfo = [], $especial = [])
474 474
     {
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
      * @param string $cardId
492 492
      * @param bool   $isOpen
493 493
      *
494
-     * @return array
494
+     * @return \EasyWeChat\Support\Collection
495 495
      */
496 496
     public function setPayCell($cardId, $isOpen = true)
497 497
     {
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
      * @param string $newCode
537 537
      * @param array  $cardId
538 538
      *
539
-     * @return array
539
+     * @return \EasyWeChat\Support\Collection
540 540
      */
541 541
     public function updateCode($code, $newCode, $cardId = [])
542 542
     {
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
      *
555 555
      * @param string $cardId
556 556
      *
557
-     * @return array
557
+     * @return \EasyWeChat\Support\Collection
558 558
      */
559 559
     public function delete($cardId)
560 560
     {
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
      * @param string $code
572 572
      * @param string $cardId
573 573
      *
574
-     * @return array
574
+     * @return \EasyWeChat\Support\Collection
575 575
      */
576 576
     public function disable($code, $cardId = '')
577 577
     {
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
      *
589 589
      * @param array $activate
590 590
      *
591
-     * @return array
591
+     * @return \EasyWeChat\Support\Collection
592 592
      */
593 593
     public function activate($activate = [])
594 594
     {
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
      * @param array  $requiredForm
603 603
      * @param array  $optionalForm
604 604
      *
605
-     * @return array
605
+     * @return \EasyWeChat\Support\Collection
606 606
      */
607 607
     public function activateUserForm($cardId, $requiredForm = [], $optionalForm = [])
608 608
     {
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
      * @param string $cardId
621 621
      * @param string $code
622 622
      *
623
-     * @return array
623
+     * @return \EasyWeChat\Support\Collection
624 624
      */
625 625
     public function getMemberCardUser($cardId, $code)
626 626
     {
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
      *
638 638
      * @param array $updateUser
639 639
      *
640
-     * @return array
640
+     * @return \EasyWeChat\Support\Collection
641 641
      */
642 642
     public function updateMemberCardUser($updateUser = [])
643 643
     {
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
      * @param string $operatorMediaId
660 660
      * @param string $appId
661 661
      *
662
-     * @return array
662
+     * @return \EasyWeChat\Support\Collection
663 663
      */
664 664
     public function subMerchant($brandName, $logoUrl, $protocol, $endTime, $primaryCategoryId, $secondaryCategoryId, $agreementMediaId, $operatorMediaId, $appId = '')
665 665
     {
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
     /**
684 684
      * 卡券开放类目查询接口.
685 685
      *
686
-     * @return array|bool
686
+     * @return \EasyWeChat\Support\Collection
687 687
      */
688 688
     public function getApplyProtocol()
689 689
     {
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
      *
720 720
      * @param string $url
721 721
      *
722
-     * @return array
722
+     * @return Card
723 723
      */
724 724
     public function setUrl($url)
725 725
     {
Please login to merge, or discard this patch.