Completed
Push — simplify/jetpack-gutenberg-cla... ( b06b64...d6cd9c )
by Bernhard
12:05 queued 05:01
created
class.jetpack-gutenberg.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.