@@ -275,6 +275,9 @@ discard block |
||
275 | 275 | } |
276 | 276 | } |
277 | 277 | |
278 | + /** |
|
279 | + * @param string $status |
|
280 | + */ |
|
278 | 281 | private static function isPaid($status) |
279 | 282 | { |
280 | 283 | $status = strtolower($status); |
@@ -285,6 +288,9 @@ discard block |
||
285 | 288 | } |
286 | 289 | } |
287 | 290 | |
291 | + /** |
|
292 | + * @param string $status |
|
293 | + */ |
|
288 | 294 | private static function isRefused($status) |
289 | 295 | { |
290 | 296 | $status = strtolower($status); |
@@ -309,6 +315,10 @@ discard block |
||
309 | 315 | return $xml; |
310 | 316 | } |
311 | 317 | |
318 | + /** |
|
319 | + * @param DOMElement $element |
|
320 | + * @param DOMDocument $xml |
|
321 | + */ |
|
312 | 322 | private static function appendData(&$element, $xml, $data) |
313 | 323 | { |
314 | 324 | foreach ($data as $k => $v) { |
@@ -581,7 +581,7 @@ |
||
581 | 581 | * Get the UID of the connected user, or 0 |
582 | 582 | * if the Facebook user is not connected. |
583 | 583 | * |
584 | - * @return string the UID if available. |
|
584 | + * @return integer the UID if available. |
|
585 | 585 | */ |
586 | 586 | public function getUser() |
587 | 587 | { |
@@ -467,7 +467,7 @@ |
||
467 | 467 | * @param $required_audience the expected consumer of the token |
468 | 468 | * @param [$issuer] the expected issues, defaults to Google |
469 | 469 | * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS |
470 | - * @return token information if valid, false if not |
|
470 | + * @return Google_Auth_LoginTicket information if valid, false if not |
|
471 | 471 | */ |
472 | 472 | public function verifySignedJwtWithCerts( |
473 | 473 | $jwt, |
@@ -85,6 +85,9 @@ discard block |
||
85 | 85 | } |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param string $file |
|
90 | + */ |
|
88 | 91 | private function getWriteableCacheFile($file) |
89 | 92 | { |
90 | 93 | return $this->getCacheFile($file, true); |
@@ -95,6 +98,9 @@ discard block |
||
95 | 98 | return $this->getCacheDir($file, $forWrite) . '/' . md5($file); |
96 | 99 | } |
97 | 100 | |
101 | + /** |
|
102 | + * @param boolean $forWrite |
|
103 | + */ |
|
98 | 104 | private function getCacheDir($file, $forWrite) |
99 | 105 | { |
100 | 106 | // use the first 2 characters of the hash as a directory prefix |
@@ -110,11 +116,17 @@ discard block |
||
110 | 116 | return $storageDir; |
111 | 117 | } |
112 | 118 | |
119 | + /** |
|
120 | + * @param string $storageFile |
|
121 | + */ |
|
113 | 122 | private function acquireReadLock($storageFile) |
114 | 123 | { |
115 | 124 | return $this->acquireLock(LOCK_SH, $storageFile); |
116 | 125 | } |
117 | 126 | |
127 | + /** |
|
128 | + * @param string $storageFile |
|
129 | + */ |
|
118 | 130 | private function acquireWriteLock($storageFile) |
119 | 131 | { |
120 | 132 | $rc = $this->acquireLock(LOCK_EX, $storageFile); |
@@ -125,6 +137,9 @@ discard block |
||
125 | 137 | return $rc; |
126 | 138 | } |
127 | 139 | |
140 | + /** |
|
141 | + * @param integer $type |
|
142 | + */ |
|
128 | 143 | private function acquireLock($type, $storageFile) |
129 | 144 | { |
130 | 145 | $mode = $type == LOCK_EX ? "w" : "r"; |
@@ -141,6 +156,9 @@ discard block |
||
141 | 156 | return true; |
142 | 157 | } |
143 | 158 | |
159 | + /** |
|
160 | + * @param string $storageFile |
|
161 | + */ |
|
144 | 162 | public function unlock($storageFile) |
145 | 163 | { |
146 | 164 | if ($this->fh) { |
@@ -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 | */ |