@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * @param string $cron_name |
| 87 | 87 | * |
| 88 | - * @return bool |
|
| 88 | + * @return false|null |
|
| 89 | 89 | */ |
| 90 | 90 | public function activate_cron( $cron_name ) { |
| 91 | 91 | |
@@ -170,6 +170,9 @@ |
||
| 170 | 170 | $listener->get_full_sync_queue()->reset(); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param integer $default |
|
| 175 | + */ |
|
| 173 | 176 | private function get_status_option( $option, $default = null ) { |
| 174 | 177 | $prefix = self::STATUS_OPTION_PREFIX; |
| 175 | 178 | |
@@ -381,8 +381,8 @@ |
||
| 381 | 381 | * |
| 382 | 382 | * @param $width int Width of the image |
| 383 | 383 | * @param $height int Height of the image |
| 384 | -* @param $req_width int Required width to pass validation |
|
| 385 | -* @param $req_height int Required height to pass validation |
|
| 384 | +* @param integer $req_width int Required width to pass validation |
|
| 385 | +* @param integer $req_height int Required height to pass validation |
|
| 386 | 386 | * @return bool - True if the image passed the required size validation |
| 387 | 387 | */ |
| 388 | 388 | function _jetpack_og_get_image_validate_size($width, $height, $req_width, $req_height) { |
@@ -248,6 +248,11 @@ discard block |
||
| 248 | 248 | ) ); |
| 249 | 249 | } |
| 250 | 250 | |
| 251 | + /** |
|
| 252 | + * @param string $path |
|
| 253 | + * @param string $classname |
|
| 254 | + * @param Jetpack_IXR_Client $constructor_arguments |
|
| 255 | + */ |
|
| 251 | 256 | public static function route( $path, $classname, $method, |
| 252 | 257 | $constructor_arguments = NULL, |
| 253 | 258 | $endpoint_arguments = NULL |
@@ -1744,7 +1749,7 @@ discard block |
||
| 1744 | 1749 | * |
| 1745 | 1750 | * @param string $route Regular expression for the endpoint with the module slug to return. |
| 1746 | 1751 | * |
| 1747 | - * @return array |
|
| 1752 | + * @return string |
|
| 1748 | 1753 | */ |
| 1749 | 1754 | public static function get_module_requested( $route ) { |
| 1750 | 1755 | |
@@ -1769,7 +1774,7 @@ discard block |
||
| 1769 | 1774 | * @param string $modules Can be a single module or a list of modules. |
| 1770 | 1775 | * @param null|string $slug Slug of the module in the first parameter. |
| 1771 | 1776 | * |
| 1772 | - * @return array |
|
| 1777 | + * @return string |
|
| 1773 | 1778 | */ |
| 1774 | 1779 | public static function prepare_modules_for_response( $modules = '', $slug = null ) { |
| 1775 | 1780 | if ( get_option( 'permalink_structure' ) ) { |
@@ -1404,7 +1404,7 @@ |
||
| 1404 | 1404 | /** |
| 1405 | 1405 | * Migration routine for moving safecss from wp_options to wp_posts to support revisions |
| 1406 | 1406 | * |
| 1407 | - * @return void |
|
| 1407 | + * @return false|null |
|
| 1408 | 1408 | */ |
| 1409 | 1409 | static function upgrade() { |
| 1410 | 1410 | $css = get_option( 'safecss' ); |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * |
| 177 | 177 | * @since 4.3.0 |
| 178 | 178 | * |
| 179 | - * @return array Array of Jetpack modules. |
|
| 179 | + * @return string Array of Jetpack modules. |
|
| 180 | 180 | */ |
| 181 | 181 | public function get_modules() { |
| 182 | 182 | require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' ); |
@@ -1104,7 +1104,6 @@ discard block |
||
| 1104 | 1104 | * |
| 1105 | 1105 | * @since 4.3.0 |
| 1106 | 1106 | * |
| 1107 | - * @param WP_REST_Request $request |
|
| 1108 | 1107 | * |
| 1109 | 1108 | * @return bool does a current user have enough privileges. |
| 1110 | 1109 | */ |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * |
| 17 | 17 | * @param string $type The type of option to return. Defaults to 'compact'. |
| 18 | 18 | * |
| 19 | - * @return array |
|
| 19 | + * @return string[] |
|
| 20 | 20 | */ |
| 21 | 21 | public static function get_option_names( $type = 'compact' ) { |
| 22 | 22 | switch ( $type ) { |
@@ -163,6 +163,9 @@ discard block |
||
| 163 | 163 | return $value; |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $name |
|
| 168 | + */ |
|
| 166 | 169 | private static function update_grouped_option( $group, $name, $value ) { |
| 167 | 170 | $options = get_option( self::$grouped_options[ $group ] ); |
| 168 | 171 | if ( ! is_array( $options ) ) { |
@@ -257,6 +260,9 @@ discard block |
||
| 257 | 260 | return $result; |
| 258 | 261 | } |
| 259 | 262 | |
| 263 | + /** |
|
| 264 | + * @param string $name |
|
| 265 | + */ |
|
| 260 | 266 | private static function get_grouped_option( $group, $name, $default ) { |
| 261 | 267 | $options = get_option( self::$grouped_options[ $group ] ); |
| 262 | 268 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |
@@ -115,6 +115,9 @@ |
||
| 115 | 115 | delete_transient( self::CALLABLES_AWAIT_TRANSIENT_NAME ); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param integer $checksum |
|
| 120 | + */ |
|
| 118 | 121 | public function should_send_callable( $callable_checksums, $name, $checksum ) { |
| 119 | 122 | if ( in_array( $name, array( 'home_url', 'site_url' ) ) && Jetpack_Options::get_option( 'migrate_for_idc' ) ) { |
| 120 | 123 | return true; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * @param string $cron_name |
| 87 | 87 | * |
| 88 | - * @return bool |
|
| 88 | + * @return false|null |
|
| 89 | 89 | */ |
| 90 | 90 | public function activate_cron( $cron_name ) { |
| 91 | 91 | |