Completed
Branch master (7caa2b)
by Pierre-Henry
34:21
created
_protected/library/Service/Google/OAuth/external/URITemplateParser.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
   public static $reserved;
42 42
   public static $reserved_pct;
43 43
 
44
+  /**
45
+   * @param string $template
46
+   */
44 47
   public function __construct($template) {
45 48
     self::$reserved = array_merge(self::$gen_delims, self::$sub_delims);
46 49
     self::$reserved_pct = array_merge(self::$gen_delims_pct, self::$sub_delims_pct);
@@ -148,6 +151,9 @@  discard block
 block discarded – undo
148 151
     return $this->expansion;
149 152
   }
150 153
 
154
+  /**
155
+   * @param stdClass $exp
156
+   */
151 157
   private function val_from_var($var, $exp) {
152 158
     $val = '';
153 159
     if (is_array($var->data)) {
Please login to merge, or discard this patch.
_protected/library/Service/Google/OAuth/Google_Client.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,6 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
   /**
114 114
    * Add a service
115
+   * @param string $service
115 116
    */
116 117
   public function addService($service, $version = false) {
117 118
     global $apiConfig;
@@ -320,7 +321,7 @@  discard block
 block discarded – undo
320 321
    * token, if a token isn't provided.
321 322
    * @throws Google_AuthException
322 323
    * @param string|null $token The token (access token or a refresh token) that should be revoked.
323
-   * @return boolean Returns True if the revocation was successful, otherwise False.
324
+   * @return boolean|null Returns True if the revocation was successful, otherwise False.
324 325
    */
325 326
   public function revokeToken($token = null) {
326 327
     self::$auth->revokeToken($token);
Please login to merge, or discard this patch.
_protected/library/Service/Google/OAuth/io/Google_CurlIO.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
   /**
183 183
    * @visible for testing.
184 184
    * @param Google_HttpRequest $request
185
-   * @return Google_HttpRequest|bool Returns the cached object or
185
+   * @return Google_HttpRequest Returns the cached object or
186 186
    * false if the operation was unsuccessful.
187 187
    */
188 188
   public function getCachedRequest(Google_HttpRequest $request) {
Please login to merge, or discard this patch.
_protected/library/Service/Google/OAuth/io/Google_HttpRequest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@  discard block
 block discarded – undo
44 44
 
45 45
   public $accessKey;
46 46
 
47
+  /**
48
+   * @param string|boolean $url
49
+   */
47 50
   public function __construct($url, $method = 'GET', $headers = array(), $postBody = null) {
48 51
     $this->setUrl($url);
49 52
     $this->setRequestMethod($method);
@@ -87,7 +90,7 @@  discard block
 block discarded – undo
87 90
   }
88 91
 
89 92
   /**
90
-   * @return string HTTP Response Code.
93
+   * @return integer HTTP Response Code.
91 94
    */
92 95
   public function getResponseHttpCode() {
93 96
     return (int) $this->responseHttpCode;
Please login to merge, or discard this patch.
_protected/library/Service/Google/OAuth/service/Google_MediaFileUpload.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 
134 134
   /**
135 135
    * Process standard file uploads.
136
-   * @param $file
136
+   * @param boolean|string $file
137 137
    * @internal param $fileName
138 138
    * @return array Inclues the processed file name.
139 139
    * @visible For testing.
Please login to merge, or discard this patch.
_protected/library/Service/Google/OAuth/service/Google_Model.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
   /**
86 86
    * Given a variable name, discover its type.
87 87
    *
88
-   * @param $name
88
+   * @param string $name
89 89
    * @param $item
90 90
    * @return object The object from the item.
91 91
    */
Please login to merge, or discard this patch.
_protected/library/Service/Google/OAuth/service/Google_ServiceResource.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,10 @@  discard block
 block discarded – undo
52 52
   /** @var array $methods */
53 53
   private $methods;
54 54
 
55
+  /**
56
+   * @param string $serviceName
57
+   * @param string $resourceName
58
+   */
55 59
   public function __construct($service, $serviceName, $resourceName, $resource) {
56 60
     $this->service = $service;
57 61
     $this->serviceName = $serviceName;
@@ -60,7 +64,7 @@  discard block
 block discarded – undo
60 64
   }
61 65
 
62 66
   /**
63
-   * @param $name
67
+   * @param string $name
64 68
    * @param $arguments
65 69
    * @return Google_HttpRequest|array
66 70
    * @throws Google_Exception
Please login to merge, or discard this patch.
_protected/library/Service/Google/OAuth/service/Google_Utils.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@
 block discarded – undo
22 22
  * @author Chirag Shah <[email protected]>
23 23
  */
24 24
 class Google_Utils {
25
+
26
+  /**
27
+   * @param string $data
28
+   */
25 29
   public static function urlSafeB64Encode($data) {
26 30
     $b64 = base64_encode($data);
27 31
     $b64 = str_replace(array('+', '/', '\r', '\n', '='),
Please login to merge, or discard this patch.
_protected/library/Service/Microsoft/Live/http.php 1 patch
Doc Comments   +42 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@  discard block
 block discarded – undo
135 135
         }
136 136
     }
137 137
 
138
+    /**
139
+     * @param integer $name
140
+     */
138 141
     Function CookieEncode($value, $name)
139 142
     {
140 143
         return($name ? str_replace("=", "%25", $value) : str_replace(";", "%3B", $value));
@@ -146,6 +149,10 @@  discard block
 block discarded – undo
146 149
         return($this->error=$error);
147 150
     }
148 151
 
152
+    /**
153
+     * @param string $error
154
+     * @param integer $error_code
155
+     */
149 156
     Function SetPHPError($error, &$php_error_message, $error_code = HTTP_CLIENT_ERROR_UNSPECIFIED_ERROR)
150 157
     {
151 158
         if(IsSet($php_error_message)
@@ -154,6 +161,9 @@  discard block
 block discarded – undo
154 161
         return($this->SetError($error, $error_code));
155 162
     }
156 163
 
164
+    /**
165
+     * @param string $error
166
+     */
157 167
     Function SetDataAccessError($error,$check_connection=0)
158 168
     {
159 169
         $this->error=$error;
@@ -264,6 +274,9 @@  discard block
 block discarded – undo
264 274
         return(1);
265 275
     }
266 276
 
277
+    /**
278
+     * @return string
279
+     */
267 280
     Function ReadChunkSize()
268 281
     {
269 282
         if($this->remaining_chunk==0)
@@ -289,6 +302,9 @@  discard block
 block discarded – undo
289 302
         return("");
290 303
     }
291 304
 
305
+    /**
306
+     * @return string
307
+     */
292 308
     Function ReadBytes($length)
293 309
     {
294 310
         if($this->use_curl)
@@ -367,6 +383,9 @@  discard block
 block discarded – undo
367 383
         return(feof($this->connection));
368 384
     }
369 385
 
386
+    /**
387
+     * @param string $server_type
388
+     */
370 389
     Function Resolve($domain, &$ip, $server_type)
371 390
     {
372 391
         if(preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/',$domain))
@@ -385,6 +404,9 @@  discard block
 block discarded – undo
385 404
         return('');
386 405
     }
387 406
 
407
+    /**
408
+     * @param boolean $ssl
409
+     */
388 410
     Function Connect($host_name, $host_port, $ssl, $server_type = 'HTTP')
389 411
     {
390 412
         $domain=$host_name;
@@ -569,6 +591,9 @@  discard block
 block discarded – undo
569 591
 
570 592
     /* Public methods */
571 593
 
594
+    /**
595
+     * @return string
596
+     */
572 597
     Function GetRequestArguments($url, &$arguments)
573 598
     {
574 599
         $this->error = '';
@@ -767,6 +792,9 @@  discard block
 block discarded – undo
767 792
         return($this->Disconnect());
768 793
     }
769 794
 
795
+    /**
796
+     * @param integer $secure
797
+     */
770 798
     Function PickCookies(&$cookies,$secure)
771 799
     {
772 800
         if(IsSet($this->cookies[$secure]))
@@ -1439,6 +1467,11 @@  discard block
 block discarded – undo
1439 1467
         return("");
1440 1468
     }
1441 1469
 
1470
+    /**
1471
+     * @param string $name
1472
+     *
1473
+     * @return string
1474
+     */
1442 1475
     Function SetCookie($name, $value, $expires="" , $path="/" , $domain="" , $secure=0, $verbatim=0)
1443 1476
     {
1444 1477
         if(strlen($this->error))
@@ -1677,6 +1710,9 @@  discard block
 block discarded – undo
1677 1710
         return("");
1678 1711
     }
1679 1712
 
1713
+    /**
1714
+     * @param integer $proxy
1715
+     */
1680 1716
     Function Authenticate(&$headers, $proxy, &$proxy_authorization, &$user, &$password, &$realm, &$workstation)
1681 1717
     {
1682 1718
         if($proxy)
@@ -1937,6 +1973,9 @@  discard block
 block discarded – undo
1937 1973
         return("");
1938 1974
     }
1939 1975
 
1976
+    /**
1977
+     * @param integer $length
1978
+     */
1940 1979
     Function ReadReplyBody(&$body,$length)
1941 1980
     {
1942 1981
         $body="";
@@ -1979,6 +2018,9 @@  discard block
 block discarded – undo
1979 2018
         return("");
1980 2019
     }
1981 2020
 
2021
+    /**
2022
+     * @return string
2023
+     */
1982 2024
     Function ReadWholeReplyBody(&$body)
1983 2025
     {
1984 2026
         $body = '';
Please login to merge, or discard this patch.