Completed
Push — master ( 9d3278...3478e0 )
by Tian
02:12
created
src/API/CardApi.php 1 patch
Doc Comments   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      *
116 116
      * @param  string $ticket 获取的二维码ticket,凭借此ticket可以在有效时间内换取二维码。
117 117
      *
118
-     * @return  array|bool        是一张图片,可以直接展示或者下载
118
+     * @return  false|string        是一张图片,可以直接展示或者下载
119 119
      */
120 120
     public function showqrcode_url($ticket = '')
121 121
     {
@@ -165,14 +165,11 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * 微信卡券:JSAPI 卡券Package - 基础参数没有附带任何值 - 再生产环境中需要根据实际情况进行修改
167 167
      *
168
-     * @param string $card_id
169
-     * @param int    $code
170
-     * @param int    $openid
171
-     * @param int    $outer_id
168
+     * @param string $card_list
172 169
      * @param int    $timestamp
173 170
      * @param int    $api_ticket
174 171
      *
175
-     * @return array
172
+     * @return false|string
176 173
      */
177 174
     public function wxCardPackage(array $card_list, $timestamp = null, $api_ticket = null)
178 175
     {
Please login to merge, or discard this patch.
src/API/KfaccountApi.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,9 +229,8 @@
 block discarded – undo
229 229
     /**
230 230
      * 图文消息 - 微信
231 231
      *
232
-     * @param  boolean $media_id   用于设定是否向全部用户发送,选择true该消息群发给所有用户,选择false可根据group_id发送给指定群组的用户
232
+     * @param  string|boolean $media_id   用于设定是否向全部用户发送,选择true该消息群发给所有用户,选择false可根据group_id发送给指定群组的用户
233 233
      * @param  string  $openid     接收消息用户对应该公众号的openid
234
-     * @param  string  $type       接受用户 是 openid  还是 wxname
235 234
      * @param string   $kf_account 客服账号
236 235
      *
237 236
      * @return int     msg_id     发送出去的消息ID
Please login to merge, or discard this patch.
src/API/ServerApi.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * @param string|callable $event
21 21
      * @param callable        $callback
22 22
      *
23
-     * @return bool Server
23
+     * @return null|false Server
24 24
      */
25 25
 
26 26
     public function on($target, $event, $callback = null)
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      * @param string $time
114 114
      * @param string $nonce
115 115
      *
116
-     * @return bool|string
116
+     * @return null|string
117 117
      */
118 118
     public function makeSignature($token = null, $time = null, $nonce = null)
119 119
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * 加密XML
199 199
      *
200
-     * @param $xml
200
+     * @param string $xml
201 201
      *
202 202
      * @return string
203 203
      */
@@ -354,8 +354,8 @@  discard block
 block discarded – undo
354 354
     /**
355 355
      * 第三方 post 推送
356 356
      *
357
-     * @param      $url
358
-     * @param null $xml
357
+     * @param      string $url
358
+     * @param string $xml
359 359
      *
360 360
      * @return mixed
361 361
      */
Please login to merge, or discard this patch.
src/CacheDriver/FileDriver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * @param string $name
15 15
      *
16
-     * @return bool|null|string|void
16
+     * @return null|boolean
17 17
      */
18 18
     public function _get($name)
19 19
     {
Please login to merge, or discard this patch.
src/CacheDriver/RedisDriver.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,6 @@
 block discarded – undo
77 77
      * 数据打包.
78 78
      *
79 79
      * @param void $data    缓存值
80
-     * @param int  $expires 超时时间
81 80
      *
82 81
      * @return string
83 82
      */
Please login to merge, or discard this patch.
src/Utils/Code/Pkcs7Encoder.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * 对需要加密的明文进行填充补位
18 18
      *
19
-     * @param $text 需要进行填充补位操作的明文
19
+     * @param string $text 需要进行填充补位操作的明文
20 20
      *
21
-     * @return 补齐明文字符串
21
+     * @return string
22 22
      */
23 23
     public function encode($text)
24 24
     {
@@ -43,8 +43,9 @@  discard block
 block discarded – undo
43 43
      * 对解密后的明文进行补位删除
44 44
      *
45 45
      * @param decrypted 解密后的明文
46
+     * @param string $text
46 47
      *
47
-     * @return 删除填充补位后的明文
48
+     * @return string
48 49
      */
49 50
     public function decode($text)
50 51
     {
Please login to merge, or discard this patch.
src/Utils/Code/Sha1.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param string $token     票据
18 18
      * @param string $timestamp 时间戳
19 19
      * @param string $nonce     随机字符串
20
-     * @param string $encrypt   密文消息
20
+     * @param string $encrypt_msg   密文消息
21 21
      */
22 22
     public function getSHA1($token, $timestamp, $nonce, $encrypt_msg)
23 23
     {
Please login to merge, or discard this patch.
src/Utils/Code/WXBizMsgCrypt.php 1 patch
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.
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.