Completed
Pull Request — master (#300)
by r
08:40
created
src/Qiniu/Sms/sms.php 2 patches
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -236,6 +236,9 @@  discard block
 block discarded – undo
236 236
         return $img_base64;
237 237
     }
238 238
 
239
+    /**
240
+     * @param string $url
241
+     */
239 242
     private function get($url, $cType = null)
240 243
     {
241 244
         $rtcToken = $this->auth->authorizationV2($url, "GET", null, $cType);
@@ -247,6 +250,9 @@  discard block
 block discarded – undo
247 250
         return array($ret->json(), null);
248 251
     }
249 252
 
253
+    /**
254
+     * @param string $url
255
+     */
250 256
     private function delete($url, $contentType = 'application/json')
251 257
     {
252 258
         $rtcToken = $this->auth->authorizationV2($url, "DELETE", null, $contentType);
@@ -258,6 +264,10 @@  discard block
 block discarded – undo
258 264
         return array($ret->json(), null);
259 265
     }
260 266
 
267
+    /**
268
+     * @param string $url
269
+     * @param string $body
270
+     */
261 271
     private function post($url, $body, $contentType = 'application/json')
262 272
     {
263 273
         $rtcToken = $this->auth->authorizationV2($url, "POST", $body, $contentType);
@@ -269,6 +279,11 @@  discard block
 block discarded – undo
269 279
         $r = ($ret->body === null) ? array() : $ret->json();
270 280
         return array($r, null);
271 281
     }
282
+
283
+    /**
284
+     * @param string $url
285
+     * @param string $body
286
+     */
272 287
     private function PUT($url, $body, $contentType = 'application/json')
273 288
     {
274 289
         $rtcToken = $this->auth->authorizationV2($url, "PUT", $body, $contentType);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Qiniu\Sms;
3 3
 
4
+use Qiniu\Auth;
5
+use Qiniu\Config;
4 6
 use Qiniu\Http\Client;
5 7
 use Qiniu\Http\Error;
6
-use Qiniu\Config;
7
-use Qiniu\Auth;
8 8
 
9 9
 class Sms
10 10
 {
Please login to merge, or discard this patch.