@@ -23,6 +23,9 @@ |
||
| 23 | 23 | public $blog_id; |
| 24 | 24 | public $platform; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param WPORG_Platform $platform |
|
| 28 | + */ |
|
| 26 | 29 | public function __construct( $blog_id, $platform ) { |
| 27 | 30 | $this->blog_id = $blog_id; |
| 28 | 31 | $this->platform = $platform; |
@@ -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 | } |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | * Render a slide |
| 218 | 218 | * |
| 219 | 219 | * @param array $media Media information. |
| 220 | - * @param array $index Index of the slide, first slide will be displayed by default, others hidden. |
|
| 220 | + * @param integer $index Index of the slide, first slide will be displayed by default, others hidden. |
|
| 221 | 221 | * |
| 222 | 222 | * @return string |
| 223 | 223 | */ |
@@ -220,7 +220,7 @@ |
||
| 220 | 220 | * Also used by @see self::test_request_port_constants |
| 221 | 221 | * |
| 222 | 222 | * @param mixed $http_x_forwarded_port value of $_SERVER[ 'HTTP_X_FORWARDED_PORT' ]. |
| 223 | - * @param mixed $server_port value of $_SERVER[ 'SERVER_PORT' ]. Null will unset the value. |
|
| 223 | + * @param string $server_port value of $_SERVER[ 'SERVER_PORT' ]. Null will unset the value. |
|
| 224 | 224 | * @param string $expeceted The expected output. Null will unset the value. |
| 225 | 225 | * @param boolean $ssl Whether to consider current request using SSL or not. |
| 226 | 226 | * |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | * Mock a set of constants. |
| 313 | 313 | * |
| 314 | 314 | * @param array $constants Array of sets with constants and their respective values. |
| 315 | - * @return phpmock\Mock The mock object. |
|
| 315 | + * @return phpmock\Mock[] The mock object. |
|
| 316 | 316 | */ |
| 317 | 317 | protected function mock_constants( $constants = array() ) { |
| 318 | 318 | $prepare_constant = function ( $constant ) { |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | /** |
| 329 | 329 | * Mock $wpdb->get_var() and make it return a certain value. |
| 330 | 330 | * |
| 331 | - * @param mixed $return_value Return value of the function. |
|
| 331 | + * @param integer $return_value Return value of the function. |
|
| 332 | 332 | * |
| 333 | 333 | * PHPUnit\Framework\MockObject\MockObject The mock object. |
| 334 | 334 | */ |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | * |
| 229 | 229 | * @param string $notify_moderator The value of the moderation_notify option. |
| 230 | 230 | * @param int $comment_id Comment ID. |
| 231 | - * @return boolean Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 231 | + * @return string|false Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 232 | 232 | */ |
| 233 | 233 | function jetpack_notify_moderator( $notify_moderator, $comment_id ) { |
| 234 | 234 | |