@@ -244,6 +244,9 @@ |
||
| 244 | 244 | } |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | + /** |
|
| 248 | + * @param string $capability |
|
| 249 | + */ |
|
| 247 | 250 | protected function current_user_can( $capability, $plugin = null ) { |
| 248 | 251 | if ( $plugin ) { |
| 249 | 252 | return current_user_can( $capability, $plugin ); |
@@ -543,6 +543,7 @@ |
||
| 543 | 543 | * @internal |
| 544 | 544 | * |
| 545 | 545 | * @param bool &$error Did the remote request result in an error? |
| 546 | + * @param boolean $error |
|
| 546 | 547 | * @return bool True if PSH is active. |
| 547 | 548 | */ |
| 548 | 549 | function jetpack_get_remote_is_psh_active( &$error ) { |
@@ -424,7 +424,7 @@ |
||
| 424 | 424 | * Only enqueue block assets when needed. |
| 425 | 425 | * |
| 426 | 426 | * @param string $type Slug of the block. |
| 427 | - * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 427 | + * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 428 | 428 | * |
| 429 | 429 | * @return void |
| 430 | 430 | */ |
@@ -410,7 +410,7 @@ |
||
| 410 | 410 | * |
| 411 | 411 | * @param Mixed $needle the needle. |
| 412 | 412 | * @param Array $haystack the haystack. |
| 413 | - * @return is the needle not in the haystack? |
|
| 413 | + * @return boolean the needle not in the haystack? |
|
| 414 | 414 | */ |
| 415 | 415 | protected function negative_in_array( $needle, $haystack ) { |
| 416 | 416 | if ( in_array( $needle, $haystack, true ) ) { |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | /** |
| 222 | 222 | * Filter and replace HTML element. |
| 223 | 223 | * |
| 224 | - * @param array $matches Array of matches. |
|
| 224 | + * @param string[] $matches Array of matches. |
|
| 225 | 225 | */ |
| 226 | 226 | private static function dispatch( $matches ) { |
| 227 | 227 | $html = preg_replace( '%�*58;//%', '://', $matches[0] ); |