Passed
Branch ticket-41057 (5417d9)
by Stephen
08:42 queued 02:43
created
src/wp-includes/capabilities.php 1 patch
Doc Comments   -9 removed lines patch added patch discarded remove patch
@@ -20,10 +20,6 @@  discard block
 block discarded – undo
20 20
  *
21 21
  * @param string $cap       Capability name.
22 22
  * @param int    $user_id   User ID.
23
- * @param int    $object_id Optional. ID of the specific object to check against if `$cap` is a "meta" cap.
24
- *                          "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used
25
- *                          by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts',
26
- *                          'edit_others_posts', etc. The parameter is accessed via func_get_args().
27 23
  * @return array Actual capabilities for meta capability.
28 24
  */
29 25
 function map_meta_cap( $cap, $user_id ) {
@@ -416,11 +412,6 @@  discard block
 block discarded – undo
416 412
  * @see map_meta_cap()
417 413
  *
418 414
  * @param string $capability Capability name.
419
- * @param int    $object_id  Optional. ID of the specific object to check against if `$capability` is a "meta" cap.
420
- *                           "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used
421
- *                           by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts',
422
- *                           'edit_others_posts', etc. Accessed via func_get_args() and passed to WP_User::has_cap(),
423
- *                           then map_meta_cap().
424 415
  * @return bool Whether the current user has the given capability. If `$capability` is a meta cap and `$object_id` is
425 416
  *              passed, whether the current user has the given meta capability for the given object.
426 417
  */
Please login to merge, or discard this patch.
src/wp-includes/class-http.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 	 * @since 2.7.0
523 523
 	 *
524 524
 	 * @param string $strResponse The full response string
525
-	 * @return array Array with 'headers' and 'body' keys.
525
+	 * @return string Array with 'headers' and 'body' keys.
526 526
 	 */
527 527
 	public static function processResponse($strResponse) {
528 528
 		$res = explode("\r\n\r\n", $strResponse, 2);
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
 	 *
543 543
 	 * @param string|array $headers
544 544
 	 * @param string $url The URL that was requested
545
-	 * @return array Processed string headers. If duplicate headers are encountered,
545
+	 * @return string Processed string headers. If duplicate headers are encountered,
546 546
 	 * 					Then a numbered array is returned as the value of that header-key.
547 547
 	 */
548 548
 	public static function processHeaders( $headers, $url = '' ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-comment-query.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1004,7 +1004,7 @@
 block discarded – undo
1004 1004
 	 * @global wpdb $wpdb WordPress database abstraction object.
1005 1005
 	 *
1006 1006
 	 * @param string $string
1007
-	 * @param array $cols
1007
+	 * @param string[] $cols
1008 1008
 	 * @return string
1009 1009
 	 */
1010 1010
 	protected function get_search_sql( $string, $cols ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-comment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@
 block discarded – undo
366 366
 	 * @access public
367 367
 	 *
368 368
 	 * @param string $name Property name.
369
-	 * @return bool
369
+	 * @return boolean|null
370 370
 	 */
371 371
 	public function __isset( $name ) {
372 372
 		if ( in_array( $name, $this->post_fields ) && 0 !== (int) $this->comment_post_ID ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-customize-widgets.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
 	 *
194 194
 	 * @param string $name    Post value.
195 195
 	 * @param mixed  $default Default post value.
196
-	 * @return mixed Unslashed post value or default value.
196
+	 * @return string Unslashed post value or default value.
197 197
 	 */
198 198
 	protected function get_post_value( $name, $default = null ) {
199 199
 		if ( ! isset( $_POST[ $name ] ) ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-post.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
 	 * @global wpdb $wpdb WordPress database abstraction object.
206 206
 	 *
207 207
 	 * @param int $post_id Post ID.
208
-	 * @return WP_Post|false Post object, false otherwise.
208
+	 * @return string Post object, false otherwise.
209 209
 	 */
210 210
 	public static function get_instance( $post_id ) {
211 211
 		global $wpdb;
Please login to merge, or discard this patch.
src/wp-includes/class-wp-user-query.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 	 * @access public
184 184
 	 *
185 185
 	 * @param string $name Property to check if set.
186
-	 * @return bool Whether the property is set.
186
+	 * @return boolean|null Whether the property is set.
187 187
 	 */
188 188
 	public function __isset( $name ) {
189 189
 		if ( in_array( $name, $this->compat_fields ) ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-user.php 1 patch
Doc Comments   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 *
112 112
 	 * @global wpdb $wpdb WordPress database abstraction object.
113 113
 	 *
114
-	 * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB.
114
+	 * @param integer $id User's ID, a WP_User object, or a user object from the DB.
115 115
 	 * @param string $name Optional. User's username
116 116
 	 * @param int $blog_id Optional Site ID, defaults to current site.
117 117
 	 */
@@ -702,11 +702,6 @@  discard block
 block discarded – undo
702 702
 	 * @see map_meta_cap()
703 703
 	 *
704 704
 	 * @param string $cap           Capability name.
705
-	 * @param int    $object_id,... Optional. ID of the specific object to check against if `$cap` is a "meta" cap.
706
-	 *                              "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used
707
-	 *                              by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts',
708
-	 *                              'edit_others_posts', etc. The parameter is accessed via func_get_args() and passed
709
-	 *                              to map_meta_cap().
710 705
 	 * @return bool Whether the current user has the given capability. If `$cap` is a meta cap and `$object_id` is
711 706
 	 *              passed, whether the current user has the given meta capability for the given object.
712 707
 	 */
Please login to merge, or discard this patch.
src/wp-includes/customize/class-wp-customize-selective-refresh.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 * @since 4.5.0
79 79
 	 * @access public
80 80
 	 *
81
-	 * @return array Partials.
81
+	 * @return WP_Customize_Partial[] Partials.
82 82
 	 */
83 83
 	public function partials() {
84 84
 		return $this->partials;
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 * @param string $errstr  Error string.
284 284
 	 * @param string $errfile Error file.
285 285
 	 * @param string $errline Error line.
286
-	 * @return true Always true.
286
+	 * @return boolean Always true.
287 287
 	 */
288 288
 	public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) {
289 289
 		$this->triggered_errors[] = array(
Please login to merge, or discard this patch.