@@ -241,7 +241,7 @@ |
||
241 | 241 | /** |
242 | 242 | * Get information about the selected AdSense account. (accounts.get) |
243 | 243 | * |
244 | - * @param string $accountId Account to get information about. |
|
244 | + * @param integer $accountId Account to get information about. |
|
245 | 245 | * @param array $optParams Optional parameters. |
246 | 246 | * |
247 | 247 | * @opt_param bool tree Whether the tree of sub accounts should be returned. |
@@ -319,7 +319,7 @@ |
||
319 | 319 | * @opt_param string maxResults Maximum number of comments to include in the result. |
320 | 320 | * @opt_param string pageToken Continuation token if request is paged. |
321 | 321 | * @opt_param bool fetchBodies Whether the body content of the comments is included. |
322 | - * @return Google_CommentList |
|
322 | + * @return Google_CommentFeed |
|
323 | 323 | */ |
324 | 324 | public function listComments($blogId, $postId, $optParams = array()) { |
325 | 325 | $params = array('blogId' => $blogId, 'postId' => $postId); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @opt_param string pageToken A continuation token that allows pagination. |
124 | 124 | * @opt_param string maxResults The maximum number of activities to include in the response. |
125 | 125 | * @opt_param string hl Specifies the interface language (host language) of your user interface. |
126 | - * @return Google_ActivityList |
|
126 | + * @return Google_ActivityFeed |
|
127 | 127 | */ |
128 | 128 | public function listActivities($userId, $collection, $optParams = array()) { |
129 | 129 | $params = array('userId' => $userId, 'collection' => $collection); |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | * Retrieves an existing comment. (comments.get) |
446 | 446 | * |
447 | 447 | * @param string $commentId ID of the comment to get. |
448 | - * @param array $optParams Optional parameters. |
|
448 | + * @param string $optParams Optional parameters. |
|
449 | 449 | * |
450 | 450 | * @opt_param string hl Specifies the interface language (host language) of your user interface. |
451 | 451 | * @return Google_Comment |
@@ -464,13 +464,13 @@ discard block |
||
464 | 464 | * Retrieves a list of comments, possibly filtered. (comments.list) |
465 | 465 | * |
466 | 466 | * @param string $activityId The ID of the activity containing the comments. |
467 | - * @param array $optParams Optional parameters. |
|
467 | + * @param string $optParams Optional parameters. |
|
468 | 468 | * |
469 | 469 | * @opt_param string orderBy Sort search results. |
470 | 470 | * @opt_param string pageToken A continuation token that allows pagination. |
471 | 471 | * @opt_param string maxResults The maximum number of activities to include in the response. |
472 | 472 | * @opt_param string hl Specifies the interface language (host language) of your user interface. |
473 | - * @return Google_CommentList |
|
473 | + * @return Google_CommentFeed |
|
474 | 474 | */ |
475 | 475 | public function listComments($activityId, $optParams = array()) { |
476 | 476 | $params = array('activityId' => $activityId); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * List all of the comments for an activity. (comments.list) |
103 | 103 | * |
104 | 104 | * @param string $activityId The ID of the activity to get comments for. |
105 | - * @param array $optParams Optional parameters. |
|
105 | + * @param string $optParams Optional parameters. |
|
106 | 106 | * |
107 | 107 | * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. |
108 | 108 | * @opt_param string maxResults The maximum number of comments to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults. |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * Get a comment. (comments.get) |
124 | 124 | * |
125 | 125 | * @param string $commentId The ID of the comment to get. |
126 | - * @param array $optParams Optional parameters. |
|
126 | + * @param string $optParams Optional parameters. |
|
127 | 127 | * @return Google_Comment |
128 | 128 | */ |
129 | 129 | public function get($commentId, $optParams = array()) { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * @param string $project The project under which the queue lies. |
103 | 103 | * @param string $taskqueue The id of the taskqueue to list tasks from. |
104 | 104 | * @param array $optParams Optional parameters. |
105 | - * @return Google_Tasks2 |
|
105 | + * @return Google_Tasks |
|
106 | 106 | */ |
107 | 107 | public function listTasks($project, $taskqueue, $optParams = array()) { |
108 | 108 | $params = array('project' => $project, 'taskqueue' => $taskqueue); |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | * Creates a new task on the specified task list. (tasks.insert) |
30 | 30 | * |
31 | 31 | * @param string $tasklist Task list identifier. |
32 | - * @param Google_Task $postBody |
|
33 | - * @param array $optParams Optional parameters. |
|
32 | + * @param string $postBody |
|
33 | + * @param Google_Task $optParams Optional parameters. |
|
34 | 34 | * |
35 | 35 | * @opt_param string parent Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional. |
36 | 36 | * @opt_param string previous Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @param string $tasklist Task list identifier. |
53 | 53 | * @param string $task Task identifier. |
54 | - * @param array $optParams Optional parameters. |
|
54 | + * @param string $optParams Optional parameters. |
|
55 | 55 | * @return Google_Task |
56 | 56 | */ |
57 | 57 | public function get($tasklist, $task, $optParams = array()) { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * Returns all tasks in the specified task list. (tasks.list) |
106 | 106 | * |
107 | 107 | * @param string $tasklist Task list identifier. |
108 | - * @param array $optParams Optional parameters. |
|
108 | + * @param string $optParams Optional parameters. |
|
109 | 109 | * |
110 | 110 | * @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. |
111 | 111 | * @opt_param bool showDeleted Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. |
@@ -134,8 +134,8 @@ discard block |
||
134 | 134 | * |
135 | 135 | * @param string $tasklist Task list identifier. |
136 | 136 | * @param string $task Task identifier. |
137 | - * @param Google_Task $postBody |
|
138 | - * @param array $optParams Optional parameters. |
|
137 | + * @param string $postBody |
|
138 | + * @param integer $optParams Optional parameters. |
|
139 | 139 | * @return Google_Task |
140 | 140 | */ |
141 | 141 | public function update($tasklist, $task, Google_Task $postBody, $optParams = array()) { |
@@ -153,8 +153,8 @@ discard block |
||
153 | 153 | * |
154 | 154 | * @param string $tasklist Task list identifier. |
155 | 155 | * @param string $task Task identifier. |
156 | - * @param Google_Task $postBody |
|
157 | - * @param array $optParams Optional parameters. |
|
156 | + * @param string $postBody |
|
157 | + * @param integer $optParams Optional parameters. |
|
158 | 158 | * @return Google_Task |
159 | 159 | */ |
160 | 160 | public function patch($tasklist, $task, Google_Task $postBody, $optParams = array()) { |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * |
173 | 173 | * @param string $tasklist Task list identifier. |
174 | 174 | * @param string $task Task identifier. |
175 | - * @param array $optParams Optional parameters. |
|
175 | + * @param string $optParams Optional parameters. |
|
176 | 176 | */ |
177 | 177 | public function delete($tasklist, $task, $optParams = array()) { |
178 | 178 | $params = array('tasklist' => $tasklist, 'task' => $task); |
@@ -41,6 +41,9 @@ discard block |
||
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 |
||
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)) { |
@@ -112,6 +112,7 @@ discard block |
||
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 |
||
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); |
@@ -182,7 +182,7 @@ |
||
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) { |