Code Duplication    Length = 14-14 lines in 2 locations

wp-includes/user.php 2 locations

@@ 625-638 (lines=14) @@
622
623
	if ( isset( $keys[ $wpdb->base_prefix . 'capabilities' ] ) && defined( 'MULTISITE' ) ) {
624
		$blog = get_blog_details( 1 );
625
		if ( $blog && isset( $blog->domain ) && ( $all || ( ! $blog->archived && ! $blog->spam && ! $blog->deleted ) ) ) {
626
			$blogs[ 1 ] = (object) array(
627
				'userblog_id' => 1,
628
				'blogname'    => $blog->blogname,
629
				'domain'      => $blog->domain,
630
				'path'        => $blog->path,
631
				'site_id'     => $blog->site_id,
632
				'siteurl'     => $blog->siteurl,
633
				'archived'    => $blog->archived,
634
				'mature'      => $blog->mature,
635
				'spam'        => $blog->spam,
636
				'deleted'     => $blog->deleted,
637
			);
638
		}
639
		unset( $keys[ $wpdb->base_prefix . 'capabilities' ] );
640
	}
641
@@ 655-668 (lines=14) @@
652
653
		$blog_id = (int) $blog_id;
654
		$blog = get_blog_details( $blog_id );
655
		if ( $blog && isset( $blog->domain ) && ( $all || ( ! $blog->archived && ! $blog->spam && ! $blog->deleted ) ) ) {
656
			$blogs[ $blog_id ] = (object) array(
657
				'userblog_id' => $blog_id,
658
				'blogname'    => $blog->blogname,
659
				'domain'      => $blog->domain,
660
				'path'        => $blog->path,
661
				'site_id'     => $blog->site_id,
662
				'siteurl'     => $blog->siteurl,
663
				'archived'    => $blog->archived,
664
				'mature'      => $blog->mature,
665
				'spam'        => $blog->spam,
666
				'deleted'     => $blog->deleted,
667
			);
668
		}
669
	}
670
671
	/**