Completed
Push — try/capabilities ( 5ae69f )
by
unknown
53:59 queued 47:44
created
packages/tracking/legacy/class.tracks-client.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	/**
53 53
 	 * Record an event.
54 54
 	 *
55
-	 * @param  mixed $event Event object to send to Tracks. An array will be cast to object. Required.
55
+	 * @param  Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required.
56 56
 	 *                      Properties are included directly in the pixel query string after light validation.
57 57
 	 * @return mixed         True on success, WP_Error on failure
58 58
 	 */
Please login to merge, or discard this patch.
packages/jitm/src/JITM.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
 	 *
104 104
 	 * @param string $content The current message.
105 105
 	 *
106
-	 * @return array The new message.
106
+	 * @return string The new message.
107 107
 	 */
108 108
 	public static function jitm_woocommerce_services_msg( $content ) {
109 109
 		if ( ! function_exists( 'wc_get_base_location' ) ) {
Please login to merge, or discard this patch.
packages/capabilities/src/Capabilities.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 		$this->rules = [];
14 14
 	}
15 15
 
16
+	/**
17
+	 * @param string $name
18
+	 */
16 19
 	static function get( $name ) {
17 20
 		return new Capability( $name, true );
18 21
 	}
Please login to merge, or discard this patch.
packages/capabilities/src/Capabilities/Builder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,11 +15,17 @@
 block discarded – undo
15 15
 		return new Builder();
16 16
 	}
17 17
 
18
+	/**
19
+	 * @param string $wp_role
20
+	 */
18 21
 	function require_wp_role( $wp_role ) {
19 22
 		$this->capabilities->add_rule( new WPRoleRule( $wp_role ) );
20 23
 		return $this;
21 24
 	}
22 25
 
26
+	/**
27
+	 * @param string $wp_capability
28
+	 */
23 29
 	function require_wp_capability( $wp_capability ) {
24 30
 		$this->capabilities->add_rule( new WPCapabilityRule( $wp_capability ) );
25 31
 		return $this;
Please login to merge, or discard this patch.
packages/capabilities/src/Capabilities/Capability.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
 	public $name;
7 7
 	public $available;
8 8
 
9
+	/**
10
+	 * @param boolean $available
11
+	 */
9 12
 	function __construct( $name, $available ) {
10 13
 		$this->name      = $name;
11 14
 		$this->available = $available;
Please login to merge, or discard this patch.