Completed
Push — try/capabilities ( ec87c0...074fe2 )
by
unknown
06:15
created
packages/capabilities/src/class-capabilities.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -24,11 +24,19 @@
 block discarded – undo
24 24
 	}
25 25
 
26 26
 	// phpcs:ignore Squiz.Commenting.FunctionComment.Missing
27
+
28
+	/**
29
+	 * @param string $name
30
+	 */
27 31
 	public static function get( $name ) {
28 32
 		return self::$capabilities[ $name ];
29 33
 	}
30 34
 
31 35
 	// phpcs:ignore Squiz.Commenting.FunctionComment.Missing
36
+
37
+	/**
38
+	 * @param Capability $capability
39
+	 */
32 40
 	public static function register( $capability ) {
33 41
 		// TODO check for clashes?
34 42
 		self::$capabilities[ $capability->name ] = $capability;
Please login to merge, or discard this patch.