@@ -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) { |
@@ -44,6 +44,9 @@ discard block |
||
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 |
||
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; |
@@ -133,7 +133,7 @@ |
||
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. |
@@ -85,7 +85,7 @@ |
||
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 | */ |