@@ -165,6 +165,9 @@ discard block |
||
165 | 165 | return $this->get_atomic_cloud_site_option( 'launch-status' ); |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string $option |
|
170 | + */ |
|
168 | 171 | function get_atomic_cloud_site_option( $option ) { |
169 | 172 | if ( ! jetpack_is_atomic_site() ) { |
170 | 173 | return false; |
@@ -233,6 +236,9 @@ discard block |
||
233 | 236 | return false; |
234 | 237 | } |
235 | 238 | |
239 | + /** |
|
240 | + * @param string $role |
|
241 | + */ |
|
236 | 242 | function current_user_can( $role ) { |
237 | 243 | return current_user_can( $role ); |
238 | 244 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * A null argument will log the file and line number of the l() call. |
40 | 40 | * |
41 | - * @param mixed $stuff Information to log. |
|
41 | + * @param string $stuff Information to log. |
|
42 | 42 | */ |
43 | 43 | function l( $stuff = null ) { |
44 | 44 | // Do nothing when debugging is off. |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * |
167 | 167 | * @param string $name Timer name. |
168 | 168 | * |
169 | - * @return mixed void or elapsed time. |
|
169 | + * @return null|double void or elapsed time. |
|
170 | 170 | */ |
171 | 171 | function e( $name = '' ) { |
172 | 172 | static $times = array(); |
@@ -15,6 +15,10 @@ |
||
15 | 15 | public $line; |
16 | 16 | public $func_name; |
17 | 17 | |
18 | + /** |
|
19 | + * @param integer $line |
|
20 | + * @param string $func_name |
|
21 | + */ |
|
18 | 22 | public function __construct( $path, $line, $func_name ) { |
19 | 23 | $this->path = $path; |
20 | 24 | $this->line = $line; |
@@ -15,6 +15,9 @@ |
||
15 | 15 | public $line; |
16 | 16 | public $class_name; |
17 | 17 | |
18 | + /** |
|
19 | + * @param integer $line |
|
20 | + */ |
|
18 | 21 | public function __construct( $path, $line, $class_name ) { |
19 | 22 | $this->path = $path; |
20 | 23 | $this->line = $line; |
@@ -16,6 +16,9 @@ |
||
16 | 16 | public $class_name; |
17 | 17 | public $method_name; |
18 | 18 | |
19 | + /** |
|
20 | + * @param integer $line |
|
21 | + */ |
|
19 | 22 | public function __construct( $path, $line, $class_name, $method_name ) { |
20 | 23 | $this->path = $path; |
21 | 24 | $this->line = $line; |
@@ -16,6 +16,9 @@ |
||
16 | 16 | public $class_name; |
17 | 17 | public $const_name; |
18 | 18 | |
19 | + /** |
|
20 | + * @param integer $line |
|
21 | + */ |
|
19 | 22 | public function __construct( $path, $line, $class_name, $const_name ) { |
20 | 23 | $this->path = $path; |
21 | 24 | $this->line = $line; |
@@ -16,6 +16,9 @@ |
||
16 | 16 | public $class_name; |
17 | 17 | public $prop_name; |
18 | 18 | |
19 | + /** |
|
20 | + * @param integer $line |
|
21 | + */ |
|
19 | 22 | public function __construct( $path, $line, $class_name, $prop_name ) { |
20 | 23 | $this->path = $path; |
21 | 24 | $this->line = $line; |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | /** |
273 | 273 | * Verifies the signature of the current request. |
274 | 274 | * |
275 | - * @return false|array |
|
275 | + * @return boolean |
|
276 | 276 | */ |
277 | 277 | public function verify_xml_rpc_signature() { |
278 | 278 | if ( is_null( $this->xmlrpc_verification ) ) { |
@@ -1134,6 +1134,7 @@ discard block |
||
1134 | 1134 | * @param String $action The action name. |
1135 | 1135 | * @param Integer $user_id The user identifier. |
1136 | 1136 | * @param Integer $exp Expiration time in seconds. |
1137 | + * @return string |
|
1137 | 1138 | */ |
1138 | 1139 | public function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
1139 | 1140 | if ( false === $user_id ) { |
@@ -1549,7 +1550,7 @@ discard block |
||
1549 | 1550 | * |
1550 | 1551 | * @param int|false $user_id false: Return the Blog Token. int: Return that user's User Token. |
1551 | 1552 | * @param string|false $token_key If provided, check that the token matches the provided input. |
1552 | - * @param bool|true $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found. |
|
1553 | + * @param boolean $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found. |
|
1553 | 1554 | * |
1554 | 1555 | * @return object|false |
1555 | 1556 | */ |