Completed
Push — master ( 00c601...88c102 )
by Carlos
05:01
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/Shop/Data/Product.php 1 patch
Doc Comments   +16 added lines, -11 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
      * 设置基本属性
48 48
      *
49 49
      * @param $main_img
50
-     * @param array $img
50
+     * @param string[] $img
51 51
      * @param null $buyLimit
52
-     * @param null $name
52
+     * @param string $name
53 53
      * @param null $categoryId
54 54
      * @return $this
55 55
      * @throws ShopsException
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * 商品详情列表
82 82
      *
83
-     * @param $name
83
+     * @param string $name
84 84
      * @param $value
85 85
      * @return $this
86 86
      * @throws ShopsException
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * 商品其他属性
167 167
      *
168
-     * @param $isPostFree
169
-     * @param $isHasReceipt
170
-     * @param $isUnderGuaranty
171
-     * @param $isSupportReplace
168
+     * @param integer $isPostFree
169
+     * @param integer $isHasReceipt
170
+     * @param integer $isUnderGuaranty
171
+     * @param integer $isSupportReplace
172 172
      * @return $this
173 173
      */
174 174
     public function setAttrext($isPostFree, $isHasReceipt, $isUnderGuaranty, $isSupportReplace)
@@ -183,6 +183,11 @@  discard block
 block discarded – undo
183 183
         return $this;
184 184
     }
185 185
 
186
+    /**
187
+     * @param string $province
188
+     * @param string $city
189
+     * @param string $address
190
+     */
186 191
     public function setLocation($province, $city, $address, $country = '中国')
187 192
     {
188 193
         $this->attributes['attrext']['location'] = array(
@@ -198,8 +203,8 @@  discard block
 block discarded – undo
198 203
     /**
199 204
      * 运费信息
200 205
      *
201
-     * @param $deliveryType
202
-     * @param null $template
206
+     * @param integer $deliveryType
207
+     * @param string $template
203 208
      * @return $this
204 209
      * @throws ShopsException
205 210
      */
@@ -220,8 +225,8 @@  discard block
 block discarded – undo
220 225
     /**
221 226
      * 默认模板
222 227
      *
223
-     * @param $id
224
-     * @param $price
228
+     * @param string $id
229
+     * @param string $price
225 230
      * @return $this
226 231
      */
227 232
     public function setExpress($id, $price)
Please login to merge, or discard this patch.
src/Wechat/Shop/Data/TopFee.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * 设置 Normal
61 61
      *
62
-     * @param $startStandards
63
-     * @param $startFees
64
-     * @param $addStandards
65
-     * @param $addFees
62
+     * @param string $startStandards
63
+     * @param string $startFees
64
+     * @param string $addStandards
65
+     * @param string $addFees
66 66
      * @return $this
67 67
      */
68 68
     public function setNormal($startStandards, $startFees, $addStandards, $addFees)
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * 设置Custom
82 82
      *
83
-     * @param $startStandards
84
-     * @param $startFees
85
-     * @param $addStandards
86
-     * @param $addFees
83
+     * @param string $startStandards
84
+     * @param string $startFees
85
+     * @param string $addStandards
86
+     * @param string $addFees
87 87
      * @param $destProvince
88 88
      * @param null $destCity
89 89
      * @param string $destCountry
Please login to merge, or discard this patch.
src/Wechat/Shop/Group.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * 添加分组
40 40
      *
41
-     * @param $groupName
42
-     * @param array $productList
41
+     * @param string $groupName
42
+     * @param string[] $productList
43 43
      * @return mixed
44 44
      * @throws
45 45
      */
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * 修改分组属性
82 82
      *
83 83
      * @param $groupId
84
-     * @param $groupName
84
+     * @param string $groupName
85 85
      * @return bool
86 86
      * @throws ShopsException
87 87
      */
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * 根据分组ID获取分组信息
145 145
      *
146
-     * @param $groupId
146
+     * @param string $groupId
147 147
      * @return array
148 148
      * @throws ShopsException
149 149
      */
Please login to merge, or discard this patch.
src/Wechat/Shop/Order.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * 根据订单ID获取订单详情
53 53
      *
54
-     * @param $orderId
54
+     * @param string $orderId
55 55
      * @return array
56 56
      * @throws ShopsException
57 57
      */
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * 根据订单状态/创建时间获取订单详情
67 67
      *
68
-     * @param null $status
69
-     * @param null $beginTime
70
-     * @param null $endTime
68
+     * @param integer $status
69
+     * @param integer $beginTime
70
+     * @param integer $endTime
71 71
      * @return mixed
72 72
      * @throws ShopsException
73 73
      */
Please login to merge, or discard this patch.