Completed
Push — master ( 9d3278...3478e0 )
by Tian
02:12
created
src/Utils/Code/WXBizMsgCrypt.php 2 patches
Doc Comments   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * 构造函数
28 28
      *
29
-     * @param $token          string 公众平台上,开发者设置的token
30
-     * @param $encodingAesKey string 公众平台上,开发者设置的EncodingAESKey
31
-     * @param $appId          string 公众平台的appId
29
+     * @param string $token          string 公众平台上,开发者设置的token
30
+     * @param string $encodingAesKey string 公众平台上,开发者设置的EncodingAESKey
31
+     * @param string $appId          string 公众平台的appId
32 32
      */
33 33
     public function __construct($token, $encodingAesKey, $appId)
34 34
     {
@@ -46,10 +46,11 @@  discard block
 block discarded – undo
46 46
      * </ol>
47 47
      *
48 48
      * @param $replyMsg     string 公众平台待回复用户的消息,xml格式的字符串
49
-     * @param $timeStamp    string 时间戳,可以自己生成,也可以用URL参数的timestamp
50
-     * @param $nonce        string 随机串,可以自己生成,也可以用URL参数的nonce
49
+     * @param integer $timeStamp    string 时间戳,可以自己生成,也可以用URL参数的timestamp
50
+     * @param string $nonce        string 随机串,可以自己生成,也可以用URL参数的nonce
51 51
      * @param &$encryptMsg  string 加密后的可以直接回复用户的密文,包括msg_signature, timestamp, nonce, encrypt的xml格式的字符串,
52 52
      *                      当return返回0时有效
53
+     * @param string $encryptMsg
53 54
      *
54 55
      * @return int 成功0,失败返回对应的错误码
55 56
      */
@@ -99,6 +100,7 @@  discard block
 block discarded – undo
99 100
      * @param $nonce        string 随机串,对应URL参数的nonce
100 101
      * @param $postData     string 密文,对应POST请求的数据
101 102
      * @param &$msg         string 解密后的原文,当return返回0时有效
103
+     * @param string $msg
102 104
      *
103 105
      * @return int 成功0,失败返回对应的错误码
104 106
      */
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,6 @@
 block discarded – undo
7 7
  * @copyright Copyright (c) 1998-2014 Tencent Inc.
8 8
  */
9 9
 
10
-use Wechat\Utils\Code\Sha1;
11
-use Wechat\Utils\Code\Xmlparse;
12
-use Wechat\Utils\Code\Pkcs7Encoder;
13 10
 use Wechat\Utils\Code\ErrorCode;
14 11
 use Wechat\Utils\Code\Prpcrypt;
15 12
 
Please login to merge, or discard this patch.
src/Utils/JSON.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         return version_compare(PHP_VERSION, '5.4.0', '>=')
50 50
             ? $data
51
-            : preg_replace_callback("/\\\\u([0-9a-f]{2})([0-9a-f]{2})/iu", function ($pipe) {
51
+            : preg_replace_callback("/\\\\u([0-9a-f]{2})([0-9a-f]{2})/iu", function($pipe) {
52 52
                 return iconv(
53 53
                     strncasecmp(PHP_OS, 'WIN', 3) ? 'UCS-2BE' : 'UCS-2',
54 54
                     'UTF-8',
Please login to merge, or discard this patch.
src/Api.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -430,6 +430,10 @@  discard block
 block discarded – undo
430 430
     }
431 431
 
432 432
     //token 刷新后重试 post
433
+
434
+    /**
435
+     * @param string $apiUrl
436
+     */
433 437
     public static function post_retry($apiUrl, $data)
434 438
     {
435 439
         $urlarr = parse_url($apiUrl);
@@ -479,6 +483,10 @@  discard block
 block discarded – undo
479 483
     }
480 484
 
481 485
     //token 刷新后重试 get
486
+
487
+    /**
488
+     * @param string $apiUrl
489
+     */
482 490
     public static function get_retry($apiUrl)
483 491
     {
484 492
         $urlarr = parse_url($apiUrl);
Please login to merge, or discard this patch.
src/API/QrcodeApi.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     /**
76 76
      * 创建永久二维码 - 场景值Str(Str)
77 77
      *
78
-     * @param  integer $scene_id [场景值ID]
78
+     * @param  integer $scene_str [场景值ID]
79 79
      *
80 80
      * @return bool|array  $res
81 81
      */
Please login to merge, or discard this patch.
src/ComponentApi.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -613,6 +613,10 @@  discard block
 block discarded – undo
613 613
     }
614 614
 
615 615
     //token 刷新后重试 post
616
+
617
+    /**
618
+     * @param string $apiUrl
619
+     */
616 620
     public static function post_retry($apiUrl, $data)
617 621
     {
618 622
         $urlarr = parse_url($apiUrl);
@@ -662,6 +666,10 @@  discard block
 block discarded – undo
662 666
     }
663 667
 
664 668
     //token 刷新后重试 get
669
+
670
+    /**
671
+     * @param string $apiUrl
672
+     */
665 673
     public static function get_retry($apiUrl)
666 674
     {
667 675
         $urlarr = parse_url($apiUrl);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Wechat;
3 3
 
4
-use Wechat\API\BaseApi;
5
-use Wechat\CacheDriver\BaseDriver;
4
+use Wechat\API\BaseApi;
5
+use Wechat\CacheDriver\BaseDriver;
6 6
 use Wechat\Api;
7 7
 
8 8
 /**
Please login to merge, or discard this patch.