@@ -178,7 +178,7 @@ |
||
178 | 178 | * Used by the IO lib and also the batch processing. |
179 | 179 | * |
180 | 180 | * @param $respData |
181 | - * @param $headerSize |
|
181 | + * @param boolean $headerSize |
|
182 | 182 | * @return array |
183 | 183 | */ |
184 | 184 | public function parseHttpResponse($respData, $headerSize) |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Execute a apiHttpRequest |
42 | 42 | * |
43 | - * @param Google_HttpRequest $request the http request to be executed |
|
43 | + * @param Google_Http_Request $request the http request to be executed |
|
44 | 44 | * @return Google_HttpRequest http request with the response http code, |
45 | 45 | * response headers and response body filled in |
46 | 46 | * @throws Google_IOException on curl or IO error |
@@ -146,6 +146,9 @@ discard block |
||
146 | 146 | // NO-OP |
147 | 147 | } |
148 | 148 | |
149 | + /** |
|
150 | + * @return integer |
|
151 | + */ |
|
149 | 152 | private function getHttpResponseCode($response_headers) |
150 | 153 | { |
151 | 154 | $header_count = count($response_headers); |
@@ -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'); |