@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * Set the reason why an extension (block or plugin) is unavailable |
| 40 | 40 | * |
| 41 | 41 | * @param string $slug Slug of the block |
| 42 | - * @param array $avalibility Arguments that tells us what kind of avalibility the block has |
|
| 42 | + * @param array $availability Arguments that tells us what kind of avalibility the block has |
|
| 43 | 43 | * |
| 44 | 44 | * @see register_block_type |
| 45 | 45 | * |
@@ -92,6 +92,9 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $slug |
|
| 97 | + */ |
|
| 95 | 98 | public static function register_plugin( $slug ) { |
| 96 | 99 | if ( in_array( $slug, self::$extensions ) ) { |
| 97 | 100 | self::$registered_plugins[] = 'jetpack-' . $slug; |
@@ -174,7 +177,7 @@ discard block |
||
| 174 | 177 | /** |
| 175 | 178 | * Checks for a given .json file in the blocks folder. |
| 176 | 179 | * |
| 177 | - * @param $preset The name of the .json file to look for. |
|
| 180 | + * @param string $preset The name of the .json file to look for. |
|
| 178 | 181 | * |
| 179 | 182 | * @return bool True if the file is found. |
| 180 | 183 | */ |
@@ -185,7 +188,7 @@ discard block |
||
| 185 | 188 | /** |
| 186 | 189 | * Decodes JSON loaded from a preset file in the blocks folder |
| 187 | 190 | * |
| 188 | - * @param $preset The name of the .json file to load. |
|
| 191 | + * @param string $preset The name of the .json file to load. |
|
| 189 | 192 | * |
| 190 | 193 | * @return mixed Returns an object if the file is present, or false if a valid .json file is not present. |
| 191 | 194 | */ |
@@ -295,7 +298,7 @@ discard block |
||
| 295 | 298 | * Only enqueue block assets when needed. |
| 296 | 299 | * |
| 297 | 300 | * @param string $type slug of the block. |
| 298 | - * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 301 | + * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 299 | 302 | * |
| 300 | 303 | * @return void |
| 301 | 304 | */ |