@@ -100,6 +100,10 @@ discard block |
||
| 100 | 100 | ), menu_page_url( 'sharing', false ) ); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $service_name |
|
| 105 | + * @param string $for |
|
| 106 | + */ |
|
| 103 | 107 | static function refresh_url( $service_name, $for ) { |
| 104 | 108 | return add_query_arg( array( |
| 105 | 109 | 'action' => 'request', |
@@ -111,6 +115,10 @@ discard block |
||
| 111 | 115 | ), admin_url( 'options-general.php?page=sharing' ) ); |
| 112 | 116 | } |
| 113 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $service_name |
|
| 120 | + * @param string $id |
|
| 121 | + */ |
|
| 114 | 122 | static function disconnect_url( $service_name, $id ) { |
| 115 | 123 | return add_query_arg( array( |
| 116 | 124 | 'action' => 'delete', |
@@ -324,6 +324,9 @@ discard block |
||
| 324 | 324 | </div><?php |
| 325 | 325 | } |
| 326 | 326 | |
| 327 | + /** |
|
| 328 | + * @param string $service_name |
|
| 329 | + */ |
|
| 327 | 330 | public static function options_page_other( $service_name ) { |
| 328 | 331 | // Nonce check |
| 329 | 332 | check_admin_referer( "options_page_{$service_name}_" . $_REQUEST['connection'] ); |
@@ -704,7 +707,7 @@ discard block |
||
| 704 | 707 | * |
| 705 | 708 | * @param array $connections_data |
| 706 | 709 | * |
| 707 | - * @return array { |
|
| 710 | + * @return string { |
|
| 708 | 711 | * Array of content for generating connection form. |
| 709 | 712 | * |
| 710 | 713 | * @type string HTML content of form |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | * |
| 12 | 12 | * @param string $type Slug of the block. Will be prefixed with jetpack/. |
| 13 | 13 | * @param array $args Arguments that are passed into the register_block_type. |
| 14 | - * @param array $avalibility Arguments that tells us what kind of avalibility the block has |
|
| 14 | + * @param array $availability Arguments that tells us what kind of avalibility the block has |
|
| 15 | 15 | * |
| 16 | 16 | * @see register_block_type |
| 17 | 17 | * |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * Checks for a given .json file in the `_inc/blocks` folder. |
| 83 | 83 | * |
| 84 | - * @param $preset The name of the .json file to look for. |
|
| 84 | + * @param string $preset The name of the .json file to look for. |
|
| 85 | 85 | * |
| 86 | 86 | * @return bool True if the file is found. |
| 87 | 87 | */ |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * Decodes JSON loaded from a preset file in `_inc/blocks` |
| 94 | 94 | * |
| 95 | - * @param $preset The name of the .json file to load. |
|
| 95 | + * @param string $preset The name of the .json file to load. |
|
| 96 | 96 | * |
| 97 | 97 | * @return mixed Returns an object if the file is present, or false if a valid .json file is not present. |
| 98 | 98 | */ |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * Only enqueue block assets when needed. |
| 198 | 198 | * |
| 199 | 199 | * @param string $type slug of the block. |
| 200 | - * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 200 | + * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 201 | 201 | * |
| 202 | 202 | * @return void |
| 203 | 203 | */ |