@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | * |
| 12 | 12 | * @param string $slug Slug of the block |
| 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 | * |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * Helper function to register a Jetpack Gutenberg plugin |
| 28 | 28 | * |
| 29 | 29 | * @param string $slug Slug of the plugin. |
| 30 | - * @param array $avalibility Arguments that tells us what kind of avalibility the plugin has |
|
| 30 | + * @param array $availability Arguments that tells us what kind of avalibility the plugin has |
|
| 31 | 31 | * |
| 32 | 32 | * @see register_block_type |
| 33 | 33 | * |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * Set the reason why an extension (block or plugin) is unavailable |
| 44 | 44 | * |
| 45 | 45 | * @param string $slug Slug of the block |
| 46 | - * @param array $avalibility Arguments that tells us what kind of avalibility the block has |
|
| 46 | + * @param array $availability Arguments that tells us what kind of avalibility the block has |
|
| 47 | 47 | * |
| 48 | 48 | * @see register_block_type |
| 49 | 49 | * |
@@ -135,7 +135,6 @@ discard block |
||
| 135 | 135 | /** |
| 136 | 136 | * Add a block to the list of blocks to be registered. |
| 137 | 137 | * |
| 138 | - * @param string $slug Slug of the block. |
|
| 139 | 138 | * @param array $args Arguments that are passed into the register_block_type. |
| 140 | 139 | * @param array $availability array containing if a block is available and the reason when it is not. |
| 141 | 140 | * |
@@ -268,7 +267,7 @@ discard block |
||
| 268 | 267 | /** |
| 269 | 268 | * Checks for a given .json file in the blocks folder. |
| 270 | 269 | * |
| 271 | - * @param $preset The name of the .json file to look for. |
|
| 270 | + * @param string $preset The name of the .json file to look for. |
|
| 272 | 271 | * |
| 273 | 272 | * @return bool True if the file is found. |
| 274 | 273 | */ |
@@ -279,7 +278,7 @@ discard block |
||
| 279 | 278 | /** |
| 280 | 279 | * Decodes JSON loaded from a preset file in the blocks folder |
| 281 | 280 | * |
| 282 | - * @param $preset The name of the .json file to load. |
|
| 281 | + * @param string $preset The name of the .json file to load. |
|
| 283 | 282 | * |
| 284 | 283 | * @return mixed Returns an object if the file is present, or false if a valid .json file is not present. |
| 285 | 284 | */ |
@@ -384,7 +383,7 @@ discard block |
||
| 384 | 383 | * Only enqueue block assets when needed. |
| 385 | 384 | * |
| 386 | 385 | * @param string $type slug of the block. |
| 387 | - * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 386 | + * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 388 | 387 | * |
| 389 | 388 | * @return void |
| 390 | 389 | */ |