Code Duplication    Length = 4-4 lines in 2 locations

wp-includes/class-wp-xmlrpc-server.php 2 locations

@@ 282-285 (lines=4) @@
279
		 */
280
		$enabled = apply_filters( 'xmlrpc_enabled', $enabled );
281
282
		if ( ! $enabled ) {
283
			$this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site.' ) ) );
284
			return false;
285
		}
286
287
		if ( $this->auth_failed ) {
288
			$user = new WP_Error( 'login_prevented' );
@@ 676-679 (lines=4) @@
673
	 * @return bool if `$args` contains at least $count arguments.
674
	 */
675
	protected function minimum_args( $args, $count ) {
676
		if ( count( $args ) < $count ) {
677
			$this->error = new IXR_Error( 400, __( 'Insufficient arguments passed to this XML-RPC method.' ) );
678
			return false;
679
		}
680
681
		return true;
682
	}