@@ -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 | */ |
@@ -52,6 +52,10 @@ discard block |
||
52 | 52 | /** @var array $methods */ |
53 | 53 | private $methods; |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $serviceName |
|
57 | + * @param string $resourceName |
|
58 | + */ |
|
55 | 59 | public function __construct($service, $serviceName, $resourceName, $resource) { |
56 | 60 | $this->service = $service; |
57 | 61 | $this->serviceName = $serviceName; |
@@ -60,7 +64,7 @@ discard block |
||
60 | 64 | } |
61 | 65 | |
62 | 66 | /** |
63 | - * @param $name |
|
67 | + * @param string $name |
|
64 | 68 | * @param $arguments |
65 | 69 | * @return Google_HttpRequest|array |
66 | 70 | * @throws Google_Exception |
@@ -22,6 +22,10 @@ |
||
22 | 22 | * @author Chirag Shah <[email protected]> |
23 | 23 | */ |
24 | 24 | class Google_Utils { |
25 | + |
|
26 | + /** |
|
27 | + * @param string $data |
|
28 | + */ |
|
25 | 29 | public static function urlSafeB64Encode($data) { |
26 | 30 | $b64 = base64_encode($data); |
27 | 31 | $b64 = str_replace(array('+', '/', '\r', '\n', '='), |