Passed
Branch ticket-41057 (5417d9)
by Stephen
08:42 queued 02:43
created
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,6 @@
 block discarded – undo
127 127
 	 *
128 128
 	 * @since 4.7.2
129 129
 	 *
130
-	 * @param int $id Supplied ID.
131 130
 	 * @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
132 131
 	 */
133 132
 	protected function get_parent( $parent ) {
Please login to merge, or discard this patch.
src/wp-includes/taxonomy.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
  * @global array $wp_taxonomies Registered taxonomies.
301 301
  *
302 302
  * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters.
303
- * @param array|string $object_type Object type or array of object types with which the taxonomy should be associated.
303
+ * @param string $object_type Object type or array of object types with which the taxonomy should be associated.
304 304
  * @param array|string $args        {
305 305
  *     Optional. Array or query string of arguments for registering a taxonomy.
306 306
  *
@@ -619,8 +619,8 @@  discard block
 block discarded – undo
619 619
  *
620 620
  * @global wpdb $wpdb WordPress database abstraction object.
621 621
  *
622
- * @param int|array    $term_ids   Term id or array of term ids of terms that will be used.
623
- * @param string|array $taxonomies String of taxonomy name or Array of string values of taxonomy names.
622
+ * @param integer    $term_ids   Term id or array of term ids of terms that will be used.
623
+ * @param string $taxonomies String of taxonomy name or Array of string values of taxonomy names.
624 624
  * @param array|string $args       Change the order of the object_ids, either ASC or DESC.
625 625
  * @return WP_Error|array If the taxonomy does not exist, then WP_Error will be returned. On success.
626 626
  *	the array can be empty meaning that there are no $object_ids found or it will return the $object_ids found.
@@ -2877,7 +2877,7 @@  discard block
 block discarded – undo
2877 2877
  *
2878 2878
  * @param array  $terms    The term_taxonomy_id of terms to update.
2879 2879
  * @param string $taxonomy The context of the term.
2880
- * @return true Always true when complete.
2880
+ * @return boolean Always true when complete.
2881 2881
  */
2882 2882
 function wp_update_term_count_now( $terms, $taxonomy ) {
2883 2883
 	$terms = array_map('intval', $terms);
@@ -3973,7 +3973,7 @@  discard block
 block discarded – undo
3973 3973
  *
3974 3974
  * @since 2.5.0
3975 3975
  *
3976
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
3976
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
3977 3977
  * @param array $args {
3978 3978
  *     Optional. Arguments about how to format the list of taxonomies. Default empty array.
3979 3979
  *
@@ -4035,7 +4035,7 @@  discard block
 block discarded – undo
4035 4035
  *
4036 4036
  * @since 2.5.0
4037 4037
  *
4038
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
4038
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
4039 4039
  * @return array An array of all taxonomy names for the given post.
4040 4040
  */
4041 4041
 function get_post_taxonomies( $post = 0 ) {
Please login to merge, or discard this patch.
src/wp-includes/theme.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
  *
1835 1835
  * @global array $editor_styles
1836 1836
  *
1837
- * @param array|string $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
1837
+ * @param string[] $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
1838 1838
  * 	                               Defaults to 'editor-style.css'
1839 1839
  */
1840 1840
 function add_editor_style( $stylesheet = 'editor-style.css' ) {
@@ -2217,7 +2217,6 @@  discard block
 block discarded – undo
2217 2217
  * @param string $feature  The feature being added. Likely core values include 'post-formats',
2218 2218
  *                         'post-thumbnails', 'html5', 'custom-logo', 'custom-header-uploads',
2219 2219
  *                         'custom-header', 'custom-background', 'title-tag', 'starter-content', etc.
2220
- * @param mixed  $args,... Optional extra arguments to pass along with certain features.
2221 2220
  * @return void|bool False on failure, void otherwise.
2222 2221
  */
2223 2222
 function add_theme_support( $feature ) {
Please login to merge, or discard this patch.
src/wp-includes/widgets.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
  *
550 550
  * @global array $wp_registered_widget_controls
551 551
  *
552
- * @param int|string $id            Widget ID.
552
+ * @param boolean|string $id            Widget ID.
553 553
  * @param string     $name          Name attribute for the widget.
554 554
  * @param callable   $form_callback Form callback.
555 555
  * @param array      $options       Optional. Widget control options. See wp_register_widget_control().
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
  * @global array $wp_registered_sidebars
608 608
  * @global array $wp_registered_widgets
609 609
  *
610
- * @param int|string $index Optional, default is 1. Index, name or ID of dynamic sidebar.
610
+ * @param integer $index Optional, default is 1. Index, name or ID of dynamic sidebar.
611 611
  * @return bool True, if widget sidebar was found and called. False if not found or not called.
612 612
  */
613 613
 function dynamic_sidebar( $index = 1 ) {
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
  *
845 845
  * @since 2.8.0
846 846
  *
847
- * @param string|int $index Sidebar name, id or number to check.
847
+ * @param string $index Sidebar name, id or number to check.
848 848
  * @return bool true if the sidebar is in use, false otherwise.
849 849
  */
850 850
 function is_active_sidebar( $index ) {
Please login to merge, or discard this patch.
src/wp-includes/wp-db.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
 	 *
664 664
 	 * @see wpdb::__construct()
665 665
 	 * @since 2.0.8
666
-	 * @return true
666
+	 * @return boolean
667 667
 	 */
668 668
 	public function __destruct() {
669 669
 		return true;
@@ -1284,8 +1284,6 @@  discard block
 block discarded – undo
1284 1284
 	 * @param array|mixed $args     The array of variables to substitute into the query's placeholders if being called like
1285 1285
 	 *                              {@link https://secure.php.net/vsprintf vsprintf()}, or the first variable to substitute into the query's placeholders if
1286 1286
 	 *                              being called like {@link https://secure.php.net/sprintf sprintf()}.
1287
-	 * @param mixed       $args,... further variables to substitute into the query's placeholders if being called like
1288
-	 *                              {@link https://secure.php.net/sprintf sprintf()}.
1289 1287
 	 * @return string|void Sanitized query string, if there is a query to prepare.
1290 1288
 	 */
1291 1289
 	public function prepare( $query, $args ) {
@@ -1499,7 +1497,7 @@  discard block
 block discarded – undo
1499 1497
 	 * @since 3.9.0 $allow_bail parameter added.
1500 1498
 	 *
1501 1499
 	 * @param bool $allow_bail Optional. Allows the function to bail. Default true.
1502
-	 * @return bool True with a successful connection, false on failure.
1500
+	 * @return boolean|null True with a successful connection, false on failure.
1503 1501
 	 */
1504 1502
 	public function db_connect( $allow_bail = true ) {
1505 1503
 		$this->is_mysql = true;
@@ -3132,7 +3130,7 @@  discard block
 block discarded – undo
3132 3130
 	 *
3133 3131
 	 * @since 1.5.0
3134 3132
 	 *
3135
-	 * @return true
3133
+	 * @return boolean
3136 3134
 	 */
3137 3135
 	public function timer_start() {
3138 3136
 		$this->time_start = microtime( true );
@@ -3269,7 +3267,7 @@  discard block
 block discarded – undo
3269 3267
 	 * @param string $db_cap The feature to check for. Accepts 'collation',
3270 3268
 	 *                       'group_concat', 'subqueries', 'set_charset',
3271 3269
 	 *                       'utf8mb4', or 'utf8mb4_520'.
3272
-	 * @return int|false Whether the database feature is supported, false otherwise.
3270
+	 * @return boolean Whether the database feature is supported, false otherwise.
3273 3271
 	 */
3274 3272
 	public function has_cap( $db_cap ) {
3275 3273
 		$version = $this->db_version();
Please login to merge, or discard this patch.
src/wp-admin/includes/class-theme-upgrader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 	 * @param bool  $install_result
94 94
 	 * @param array $hook_extra
95 95
 	 * @param array $child_result
96
-	 * @return type
96
+	 * @return boolean
97 97
 	 */
98 98
 	public function check_parent_theme_filter( $install_result, $hook_extra, $child_result ) {
99 99
 		// Check to see if we need to install a parent theme
Please login to merge, or discard this patch.
src/wp-admin/includes/class-wp-upgrader.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
 	 *
184 184
 	 * @global WP_Filesystem_Base $wp_filesystem Subclass
185 185
 	 *
186
-	 * @param array $directories                  Optional. A list of directories. If any of these do
186
+	 * @param string[] $directories                  Optional. A list of directories. If any of these do
187 187
 	 *                                            not exist, a WP_Error object will be returned.
188 188
 	 *                                            Default empty array.
189 189
 	 * @param bool  $allow_relaxed_file_ownership Whether to allow relaxed file ownership.
Please login to merge, or discard this patch.
src/wp-includes/class-wp-xmlrpc-server.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -408,7 +408,6 @@  discard block
 block discarded – undo
408 408
 	 *
409 409
 	 * @since 4.9.0
410 410
 	 *
411
-	 * @param int $post_id Post ID.
412 411
 	 * @return array Array of custom fields, if they exist.
413 412
 	 */
414 413
 	public function get_term_custom_fields( $term_id ) {
@@ -437,7 +436,6 @@  discard block
 block discarded – undo
437 436
 	 *
438 437
 	 * @since 4.9.0
439 438
 	 *
440
-	 * @param int $post_id Post ID.
441 439
 	 * @param array $fields Custom fields.
442 440
 	 */
443 441
 	public function set_term_custom_fields( $term_id, $fields ) {
@@ -824,7 +822,7 @@  discard block
 block discarded – undo
824 822
 	 * @access protected
825 823
 	 *
826 824
 	 * @param string $date Date string to convert.
827
-	 * @return IXR_Date IXR_Date object.
825
+	 * @return integer IXR_Date object.
828 826
 	 */
829 827
 	protected function _convert_date( $date ) {
830 828
 		if ( $date === '0000-00-00 00:00:00' ) {
@@ -840,7 +838,7 @@  discard block
 block discarded – undo
840 838
 	 *
841 839
 	 * @param string $date_gmt WordPress GMT date string.
842 840
 	 * @param string $date     Date string.
843
-	 * @return IXR_Date IXR_Date object.
841
+	 * @return integer IXR_Date object.
844 842
 	 */
845 843
 	protected function _convert_date_gmt( $date_gmt, $date ) {
846 844
 		if ( $date !== '0000-00-00 00:00:00' && $date_gmt === '0000-00-00 00:00:00' ) {
Please login to merge, or discard this patch.
src/wp-includes/compat.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
 	 *
367 367
 	 * @internal This is a compatibility function for PHP <5.5
368 368
 	 *
369
-	 * @return bool|string Returns the error message on success, "No Error" if no error has occurred,
369
+	 * @return false|string Returns the error message on success, "No Error" if no error has occurred,
370 370
 	 *                     or false on failure.
371 371
 	 */
372 372
 	function json_last_error_msg() {
Please login to merge, or discard this patch.