Completed
Push — simplify/jetpack-gutenberg-cla... ( 556ecb...04b2b3 )
by Bernhard
07:14
created
class.jetpack-gutenberg.php 1 patch
Doc Comments   +11 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
  *
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
 	Jetpack_Gutenberg::set_block_availability( $slug, $availability );
55 55
 }
56 56
 
57
+/**
58
+ * @param string $slug
59
+ */
57 60
 function set_plugin_availability( $slug, $availability = array( 'available' => true ) ) {
58 61
 	Jetpack_Gutenberg::set_plugin_availability( $slug, $availability );
59 62
 }
@@ -88,6 +91,9 @@  discard block
 block discarded – undo
88 91
 		register_block_type( 'jetpack/' . $slug, $args );
89 92
 	}
90 93
 
94
+	/**
95
+	 * @param string $slug
96
+	 */
91 97
 	public static function register_plugin( $slug, $availability ) {
92 98
 		if ( in_array( $slug, self::$extensions ) ) {
93 99
 			self::set_plugin_availability( $slug, array( 'available' => true ) );
@@ -210,7 +216,7 @@  discard block
 block discarded – undo
210 216
 	/**
211 217
 	 * Checks for a given .json file in the blocks folder.
212 218
 	 *
213
-	 * @param $preset The name of the .json file to look for.
219
+	 * @param string $preset The name of the .json file to look for.
214 220
 	 *
215 221
 	 * @return bool True if the file is found.
216 222
 	 */
@@ -221,7 +227,7 @@  discard block
 block discarded – undo
221 227
 	/**
222 228
 	 * Decodes JSON loaded from a preset file in the blocks folder
223 229
 	 *
224
-	 * @param $preset The name of the .json file to load.
230
+	 * @param string $preset The name of the .json file to load.
225 231
 	 *
226 232
 	 * @return mixed Returns an object if the file is present, or false if a valid .json file is not present.
227 233
 	 */
@@ -333,7 +339,7 @@  discard block
 block discarded – undo
333 339
 	 * Only enqueue block assets when needed.
334 340
 	 *
335 341
 	 * @param string $type slug of the block.
336
-	 * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued.
342
+	 * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued.
337 343
 	 *
338 344
 	 * @return void
339 345
 	 */
Please login to merge, or discard this patch.