@@ -90,6 +90,9 @@ discard block |
||
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $slug |
|
95 | + */ |
|
93 | 96 | public static function register_plugin( $slug ) { |
94 | 97 | if ( in_array( $slug, self::$extensions ) ) { |
95 | 98 | self::$registered_plugins[] = 'jetpack-' . $slug; |
@@ -172,7 +175,7 @@ discard block |
||
172 | 175 | /** |
173 | 176 | * Checks for a given .json file in the blocks folder. |
174 | 177 | * |
175 | - * @param $preset The name of the .json file to look for. |
|
178 | + * @param string $preset The name of the .json file to look for. |
|
176 | 179 | * |
177 | 180 | * @return bool True if the file is found. |
178 | 181 | */ |
@@ -183,7 +186,7 @@ discard block |
||
183 | 186 | /** |
184 | 187 | * Decodes JSON loaded from a preset file in the blocks folder |
185 | 188 | * |
186 | - * @param $preset The name of the .json file to load. |
|
189 | + * @param string $preset The name of the .json file to load. |
|
187 | 190 | * |
188 | 191 | * @return mixed Returns an object if the file is present, or false if a valid .json file is not present. |
189 | 192 | */ |
@@ -293,7 +296,7 @@ discard block |
||
293 | 296 | * Only enqueue block assets when needed. |
294 | 297 | * |
295 | 298 | * @param string $type slug of the block. |
296 | - * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
299 | + * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
297 | 300 | * |
298 | 301 | * @return void |
299 | 302 | */ |