Completed
Pull Request — master (#267)
by
unknown
15:12 queued 02:03
created
src/Qiniu/Rtc/AppClient.php 2 patches
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,11 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Qiniu\Rtc;
3 3
 
4
-use Qiniu\Zone;
4
+use Qiniu\Auth;
5
+use Qiniu\Config;
5 6
 use Qiniu\Http\Client;
6 7
 use Qiniu\Http\Error;
7
-use Qiniu\Config;
8
-use Qiniu\Auth;
9 8
 
10 9
 class AppClient
11 10
 {
Please login to merge, or discard this patch.
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -169,6 +169,9 @@  discard block
 block discarded – undo
169 169
         return $this->auth->getAccessKey() . ":" . $encodedSign . ":" . $encodedappAccess;
170 170
     }
171 171
 
172
+    /**
173
+     * @param string $url
174
+     */
172 175
     private function get($url, $cType = null)
173 176
     {
174 177
         $rtcToken = $this->auth->authorizationV2($url, "GET", $body, $cType);
@@ -180,6 +183,9 @@  discard block
 block discarded – undo
180 183
         return array($ret->json(), null);
181 184
     }
182 185
 
186
+    /**
187
+     * @param string $url
188
+     */
183 189
     private function delete($url, $cType = 'application/json')
184 190
     {
185 191
         $rtcToken = $this->auth->authorizationV2($url, "DELETE", $body, $cType);
@@ -191,6 +197,10 @@  discard block
 block discarded – undo
191 197
         return array($ret->json(), null);
192 198
     }
193 199
 
200
+    /**
201
+     * @param string $url
202
+     * @param string $body
203
+     */
194 204
     private function post($url, $body, $cType = 'application/json')
195 205
     {
196 206
         $rtcToken = $this->auth->authorizationV2($url, "POST", $body, $cType);
Please login to merge, or discard this patch.