Completed
Push — master ( a3c7a7...bd72ff )
by Carlos
02:47
created
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.
src/Wechat/Shop/Postage.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * 添加邮费模板
46 46
      *
47
-     * @param $name
47
+     * @param string $name
48 48
      * @param null $topFee
49 49
      * @param int $assumer
50 50
      * @param int $valuation
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * 修改邮费模板
98 98
      *
99 99
      * @param $templateId
100
-     * @param $name
100
+     * @param string $name
101 101
      * @param null $topFee
102 102
      * @param int $assumer
103 103
      * @param int $valuation
Please login to merge, or discard this patch.
src/Wechat/Shop/Shelf.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * 添加货架
39 39
      *
40
-     * @param $shelfData
41
-     * @param $shelfBanner
42
-     * @param $shelfName
40
+     * @param \Closure $shelfData
41
+     * @param string $shelfBanner
42
+     * @param string $shelfName
43 43
      * @return int
44 44
      * @throws ShopsException
45 45
      */
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @param array|callable $shelfData
89 89
      * @param $shelfId
90
-     * @param $shelfBanner
91
-     * @param $shelfName
90
+     * @param string $shelfBanner
91
+     * @param string $shelfName
92 92
      * @return bool
93 93
      * @throws ShopsException
94 94
      */
Please login to merge, or discard this patch.
src/Wechat/Shop/Stock.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * 增加库存
34 34
      *
35
-     * @param $productId
35
+     * @param string $productId
36 36
      * @param $quantity
37 37
      * @param string|array $skuInfo
38 38
      * @return bool
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * 减少库存
55 55
      *
56
-     * @param array $productId
56
+     * @param string $productId
57 57
      * @param string|array $skuInfo
58 58
      * @param int $quantity
59 59
      * @return bool
Please login to merge, or discard this patch.
test/Shop/ProductTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Overtrue\Wechat\Test\TestBase;
15 15
 use Symfony\Component\Yaml\Yaml;
16 16
 use Overtrue\Wechat\Shop\Data\Product as ProductData;
17
-use Overtrue\Wechat\Media;
18 17
 
19 18
 class ProductTest extends TestBase
20 19
 {
Please login to merge, or discard this patch.