@@ -116,7 +116,7 @@ |
||
| 116 | 116 | /** |
| 117 | 117 | * Given a variable name, discover its type. |
| 118 | 118 | * |
| 119 | - * @param $name |
|
| 119 | + * @param string $name |
|
| 120 | 120 | * @param $item |
| 121 | 121 | * @return object The object from the item. |
| 122 | 122 | */ |
@@ -500,7 +500,7 @@ |
||
| 500 | 500 | * authenticated user. |
| 501 | 501 | * @param string $collection |
| 502 | 502 | * The collection to which to write moments. |
| 503 | - * @param Google_Moment $postBody |
|
| 503 | + * @param Google_Service_Plus_Moment $postBody |
|
| 504 | 504 | * @param array $optParams Optional parameters. |
| 505 | 505 | * |
| 506 | 506 | * @opt_param bool debug |
@@ -62,6 +62,11 @@ discard block |
||
| 62 | 62 | /** @var array $methods */ |
| 63 | 63 | private $methods; |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param Google_Service_Plus $service |
|
| 67 | + * @param string $serviceName |
|
| 68 | + * @param string $resourceName |
|
| 69 | + */ |
|
| 65 | 70 | public function __construct($service, $serviceName, $resourceName, $resource) |
| 66 | 71 | { |
| 67 | 72 | $this->service = $service; |
@@ -76,9 +81,9 @@ discard block |
||
| 76 | 81 | /** |
| 77 | 82 | * TODO(ianbarber): This function needs simplifying. |
| 78 | 83 | * |
| 79 | - * @param $name |
|
| 84 | + * @param string $name |
|
| 80 | 85 | * @param $arguments |
| 81 | - * @param $expected_class - optional, the expected class name |
|
| 86 | + * @param string $expected_class - optional, the expected class name |
|
| 82 | 87 | * @return Google_Http_Request|expected_class |
| 83 | 88 | * @throws Google_Exception |
| 84 | 89 | */ |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | class Google_Utils |
| 25 | 25 | { |
| 26 | + /** |
|
| 27 | + * @param string $data |
|
| 28 | + */ |
|
| 26 | 29 | public static function urlSafeB64Encode($data) |
| 27 | 30 | { |
| 28 | 31 | $b64 = base64_encode($data); |
@@ -197,6 +197,12 @@ discard block |
||
| 197 | 197 | // (1) do a lookup in a table of trusted certs keyed off of consumer |
| 198 | 198 | // |
| 199 | 199 | // Either way should return a string representation of the certificate |
| 200 | + |
|
| 201 | + /** |
|
| 202 | + * @param OAuthRequest $request |
|
| 203 | + * |
|
| 204 | + * @return string |
|
| 205 | + */ |
|
| 200 | 206 | protected abstract function fetch_private_cert(&$request); |
| 201 | 207 | |
| 202 | 208 | public function build_signature($request, $consumer, $token) |
@@ -332,6 +338,9 @@ discard block |
||
| 332 | 338 | return new OAuthRequest($http_method, $http_url, $parameters); |
| 333 | 339 | } |
| 334 | 340 | |
| 341 | + /** |
|
| 342 | + * @param string $name |
|
| 343 | + */ |
|
| 335 | 344 | public function set_parameter($name, $value, $allow_duplicates = true) |
| 336 | 345 | { |
| 337 | 346 | if ($allow_duplicates && isset($this->parameters[$name])) { |
@@ -91,6 +91,7 @@ discard block |
||
| 91 | 91 | * Get a request_token from Twitter |
| 92 | 92 | * |
| 93 | 93 | * @returns a key/value array containing oauth_token and oauth_token_secret |
| 94 | + * @param string $oauth_callback |
|
| 94 | 95 | */ |
| 95 | 96 | function getRequestToken($oauth_callback) |
| 96 | 97 | { |
@@ -164,6 +165,7 @@ discard block |
||
| 164 | 165 | |
| 165 | 166 | /** |
| 166 | 167 | * GET wrapper for oAuthRequest. |
| 168 | + * @param string $url |
|
| 167 | 169 | */ |
| 168 | 170 | function get($url, $parameters = []) |
| 169 | 171 | { |
@@ -177,6 +179,7 @@ discard block |
||
| 177 | 179 | |
| 178 | 180 | /** |
| 179 | 181 | * POST wrapper for oAuthRequest. |
| 182 | + * @param string $url |
|
| 180 | 183 | */ |
| 181 | 184 | function post($url, $parameters = []) |
| 182 | 185 | { |
@@ -203,6 +206,7 @@ discard block |
||
| 203 | 206 | |
| 204 | 207 | /** |
| 205 | 208 | * Format and sign an OAuth / API request |
| 209 | + * @param string $method |
|
| 206 | 210 | */ |
| 207 | 211 | function oAuthRequest($url, $method, $parameters) |
| 208 | 212 | { |
@@ -222,6 +226,7 @@ discard block |
||
| 222 | 226 | /** |
| 223 | 227 | * Make an HTTP request |
| 224 | 228 | * |
| 229 | + * @param string $postfields |
|
| 225 | 230 | * @return API results |
| 226 | 231 | */ |
| 227 | 232 | function http($url, $method, $postfields = null) |
@@ -5,6 +5,9 @@ discard block |
||
| 5 | 5 | protected $_contents = null; |
| 6 | 6 | protected $_table = []; |
| 7 | 7 | |
| 8 | + /** |
|
| 9 | + * @param string $base |
|
| 10 | + */ |
|
| 8 | 11 | public function __construct($base, $action, $format = 'html') |
| 9 | 12 | { |
| 10 | 13 | $this->set('base', $base); |
@@ -34,6 +37,9 @@ discard block |
||
| 34 | 37 | $this->setFileinfo(); |
| 35 | 38 | } |
| 36 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $action |
|
| 42 | + */ |
|
| 37 | 43 | public function setAction($action) |
| 38 | 44 | { |
| 39 | 45 | $this->set('action', $action); |
@@ -113,6 +119,9 @@ discard block |
||
| 113 | 119 | return $this->get('parser'); |
| 114 | 120 | } |
| 115 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $base |
|
| 124 | + */ |
|
| 116 | 125 | public static function exist($base, $action, $format = 'html') |
| 117 | 126 | { |
| 118 | 127 | return self::_getFileInfo($base, $action, $format); |
@@ -138,6 +147,9 @@ discard block |
||
| 138 | 147 | return $this->get('action'); |
| 139 | 148 | } |
| 140 | 149 | |
| 150 | + /** |
|
| 151 | + * @return string |
|
| 152 | + */ |
|
| 141 | 153 | public function getFormat() |
| 142 | 154 | { |
| 143 | 155 | return $this->get('format'); |
@@ -139,8 +139,6 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | 141 | * |
| 142 | - * @param string $name |
|
| 143 | - * @param string $version |
|
| 144 | 142 | * @return void |
| 145 | 143 | */ |
| 146 | 144 | public function requireGWebFont($family, $weight = [400], $subset = ['latin']) |
@@ -272,7 +270,6 @@ discard block |
||
| 272 | 270 | |
| 273 | 271 | /** |
| 274 | 272 | * |
| 275 | - * @param string $target |
|
| 276 | 273 | * @return string |
| 277 | 274 | */ |
| 278 | 275 | public function ACAjaxUpload($name, $options = [], $id = null, $class = null) |
@@ -283,8 +280,6 @@ discard block |
||
| 283 | 280 | |
| 284 | 281 | /** |
| 285 | 282 | * |
| 286 | - * @param string $route |
|
| 287 | - * @param mixed $id |
|
| 288 | 283 | * @return string |
| 289 | 284 | */ |
| 290 | 285 | public function ACEmbedForm($formId) |
@@ -298,7 +293,6 @@ discard block |
||
| 298 | 293 | |
| 299 | 294 | /** |
| 300 | 295 | * |
| 301 | - * @param string $target |
|
| 302 | 296 | * @return string |
| 303 | 297 | */ |
| 304 | 298 | public function ACImage($attributes) |
@@ -308,7 +302,6 @@ discard block |
||
| 308 | 302 | |
| 309 | 303 | /** |
| 310 | 304 | * |
| 311 | - * @param string $target |
|
| 312 | 305 | * @return string |
| 313 | 306 | */ |
| 314 | 307 | public function ACLazyImage($attributes) |
@@ -322,7 +315,6 @@ discard block |
||
| 322 | 315 | |
| 323 | 316 | /** |
| 324 | 317 | * |
| 325 | - * @param string $target |
|
| 326 | 318 | * @return string |
| 327 | 319 | */ |
| 328 | 320 | public function ACQrcode($attributes) |
@@ -336,7 +328,6 @@ discard block |
||
| 336 | 328 | |
| 337 | 329 | /** |
| 338 | 330 | * |
| 339 | - * @param string $target |
|
| 340 | 331 | * @return string |
| 341 | 332 | */ |
| 342 | 333 | public function ACMarkdown($attributes) |
@@ -418,7 +409,6 @@ discard block |
||
| 418 | 409 | |
| 419 | 410 | /** |
| 420 | 411 | * |
| 421 | - * @param mixed $model |
|
| 422 | 412 | * @return string |
| 423 | 413 | */ |
| 424 | 414 | public function ACString($var) |
@@ -55,6 +55,9 @@ |
||
| 55 | 55 | return $root; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param string $xml |
|
| 60 | + */ |
|
| 58 | 61 | protected function _breakOutCdata($xml) |
| 59 | 62 | { |
| 60 | 63 | $patterns = [ |