Completed
Push — simplify/jetpack-gutenberg-cla... ( 5d053d...b06b64 )
by Bernhard
06:43
created
class.jetpack-gutenberg.php 1 patch
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  * Helper function to register a Jetpack Gutenberg plugin
27 27
  *
28 28
  * @param string $slug Slug of the plugin.
29
- * @param array  $avalibility Arguments that tells us what kind of avalibility the plugin has
29
+ * @param array  $availability Arguments that tells us what kind of avalibility the plugin has
30 30
  *
31 31
  * @see register_block_type
32 32
  *
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  * Set the reason why an extension (block or plugin) is unavailable
43 43
  *
44 44
  * @param string $slug Slug of the block
45
- * @param array  $avalibility Arguments that tells us what kind of avalibility the block has
45
+ * @param array  $availability Arguments that tells us what kind of avalibility the block has
46 46
  *
47 47
  * @see register_block_type
48 48
  *
@@ -95,6 +95,9 @@  discard block
 block discarded – undo
95 95
 		}
96 96
 	}
97 97
 
98
+	/**
99
+	 * @param string $slug
100
+	 */
98 101
 	public static function register_plugin( $slug ) {
99 102
 		if ( in_array( $slug, self::$extensions ) ) {
100 103
 			self::$registered_plugins[] = 'jetpack-' . $slug;
@@ -177,7 +180,7 @@  discard block
 block discarded – undo
177 180
 	/**
178 181
 	 * Checks for a given .json file in the blocks folder.
179 182
 	 *
180
-	 * @param $preset The name of the .json file to look for.
183
+	 * @param string $preset The name of the .json file to look for.
181 184
 	 *
182 185
 	 * @return bool True if the file is found.
183 186
 	 */
@@ -188,7 +191,7 @@  discard block
 block discarded – undo
188 191
 	/**
189 192
 	 * Decodes JSON loaded from a preset file in the blocks folder
190 193
 	 *
191
-	 * @param $preset The name of the .json file to load.
194
+	 * @param string $preset The name of the .json file to load.
192 195
 	 *
193 196
 	 * @return mixed Returns an object if the file is present, or false if a valid .json file is not present.
194 197
 	 */
@@ -298,7 +301,7 @@  discard block
 block discarded – undo
298 301
 	 * Only enqueue block assets when needed.
299 302
 	 *
300 303
 	 * @param string $type slug of the block.
301
-	 * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued.
304
+	 * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued.
302 305
 	 *
303 306
 	 * @return void
304 307
 	 */
Please login to merge, or discard this patch.