Completed
Pull Request — master (#176)
by ru cheng
02:33
created
src/Wechat/AccessToken.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,9 +103,8 @@
 block discarded – undo
103 103
     /**
104 104
      * Get the access token from WeChat server.
105 105
      *
106
-     * @param string $cacheKey
107 106
      *
108
-     * @return array|bool
107
+     * @return string
109 108
      */
110 109
     protected function getTokenFromServer()
111 110
     {
Please login to merge, or discard this patch.
src/Wechat/Http.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,11 +71,11 @@
 block discarded – undo
71 71
      *
72 72
      * @param string $url     接口的URL
73 73
      * @param string $method  请求类型   GET | POST
74
-     * @param array  $params  接口参数
74
+     * @param string  $params  接口参数
75 75
      * @param array  $options 其它选项
76 76
      * @param int    $retry   重试次数
77 77
      *
78
-     * @return array | boolean
78
+     * @return string | boolean
79 79
      */
80 80
     public function request($url, $method = self::GET, $params = array(), $options = array(), $retry = 1)
81 81
     {
Please login to merge, or discard this patch.
src/Wechat/Lottery.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,6 @@
 block discarded – undo
112 112
      * </pre>
113 113
      *
114 114
      * @param array $data
115
-     * @param int   $type
116 115
      *
117 116
      * @return array
118 117
      */
Please login to merge, or discard this patch.
src/Wechat/Messages/Voice.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     /**
43 43
      * 设置语音
44 44
      *
45
-     * @param string $mediaId
45
+     * @param string $mediaid
46 46
      *
47 47
      * @return Voice
48 48
      */
Please login to merge, or discard this patch.
src/Wechat/Payment/UnifiedOrder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Overtrue\Wechat\Utils\XML;
20 20
 use Overtrue\Wechat\Utils\SignGenerator;
21 21
 use Overtrue\Wechat\Http;
22
-use Overtrue\Wechat\AccessToken;
23 22
 
24 23
 class UnifiedOrder
25 24
 {
Please login to merge, or discard this patch.
src/Wechat/Messages/BaseMessage.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * 生成用于回复的数据
82 82
      *
83
-     * @return array
83
+     * @return string
84 84
      */
85 85
     public function buildForReply()
86 86
     {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * 生成通过群发预览的数据
140 140
      *
141
-     * @param $type
141
+     * @param string $type
142 142
      *
143 143
      * @return array
144 144
      *
Please login to merge, or discard this patch.