Code Duplication    Length = 16-16 lines in 3 locations

src/wp-includes/class-wp-comment-query.php 1 location

@@ 324-339 (lines=16) @@
321
	 *
322
	 * @param string|array $query WP_Comment_Query arguments. See WP_Comment_Query::__construct()
323
	 */
324
	public function parse_query( $query = '' ) {
325
		if ( empty( $query ) ) {
326
			$query = $this->query_vars;
327
		}
328
329
		$this->query_vars = wp_parse_args( $query, $this->query_var_defaults );
330
331
		/**
332
		 * Fires after the comment query vars have been parsed.
333
		 *
334
		 * @since 4.2.0
335
		 *
336
		 * @param WP_Comment_Query &$this The WP_Comment_Query instance (passed by reference).
337
		 */
338
		do_action_ref_array( 'parse_comment_query', array( &$this ) );
339
	}
340
341
	/**
342
	 * Sets up the WordPress query for retrieving comments.

src/wp-includes/class-wp-network-query.php 1 location

@@ 159-174 (lines=16) @@
156
	 *
157
	 * @param string|array $query WP_Network_Query arguments. See WP_Network_Query::__construct()
158
	 */
159
	public function parse_query( $query = '' ) {
160
		if ( empty( $query ) ) {
161
			$query = $this->query_vars;
162
		}
163
164
		$this->query_vars = wp_parse_args( $query, $this->query_var_defaults );
165
166
		/**
167
		 * Fires after the network query vars have been parsed.
168
		 *
169
		 * @since 4.6.0
170
		 *
171
		 * @param WP_Network_Query &$this The WP_Network_Query instance (passed by reference).
172
		 */
173
		do_action_ref_array( 'parse_network_query', array( &$this ) );
174
	}
175
176
	/**
177
	 * Sets up the WordPress query for retrieving networks.

src/wp-includes/class-wp-site-query.php 1 location

@@ 201-216 (lines=16) @@
198
	 *
199
	 * @param string|array $query Array or string of WP_Site_Query arguments. See WP_Site_Query::__construct().
200
	 */
201
	public function parse_query( $query = '' ) {
202
		if ( empty( $query ) ) {
203
			$query = $this->query_vars;
204
		}
205
206
		$this->query_vars = wp_parse_args( $query, $this->query_var_defaults );
207
208
		/**
209
		 * Fires after the site query vars have been parsed.
210
		 *
211
		 * @since 4.6.0
212
		 *
213
		 * @param WP_Site_Query &$this The WP_Site_Query instance (passed by reference).
214
		 */
215
		do_action_ref_array( 'parse_site_query', array( &$this ) );
216
	}
217
218
	/**
219
	 * Sets up the WordPress query for retrieving sites.