Code Duplication    Length = 6-7 lines in 4 locations

includes/actions/CreditsAction.php 2 locations

@@ 161-166 (lines=6) @@
158
		}
159
160
		# "ThisSite user(s) A, B and C"
161
		if ( count( $user_names ) ) {
162
			$user = $this->msg( 'siteusers' )->rawParams( $lang->listToText( $user_names ) )->params(
163
				count( $user_names ) )->escaped();
164
		} else {
165
			$user = false;
166
		}
167
168
		if ( count( $anon_ips ) ) {
169
			$anon = $this->msg( 'anonusers' )->rawParams( $lang->listToText( $anon_ips ) )->params(
@@ 168-173 (lines=6) @@
165
			$user = false;
166
		}
167
168
		if ( count( $anon_ips ) ) {
169
			$anon = $this->msg( 'anonusers' )->rawParams( $lang->listToText( $anon_ips ) )->params(
170
				count( $anon_ips ) )->escaped();
171
		} else {
172
			$anon = false;
173
		}
174
175
		# This is the big list, all mooshed together. We sift for blank strings
176
		$fulllist = [];

includes/actions/InfoAction.php 2 locations

@@ 862-868 (lines=7) @@
859
		$real = $lang->listToText( $real_names );
860
861
		# "ThisSite user(s) A, B and C"
862
		if ( count( $user_names ) ) {
863
			$user = $this->msg( 'siteusers' )
864
				->rawParams( $lang->listToText( $user_names ) )
865
				->params( count( $user_names ) )->escaped();
866
		} else {
867
			$user = false;
868
		}
869
870
		if ( count( $anon_ips ) ) {
871
			$anon = $this->msg( 'anonusers' )
@@ 870-876 (lines=7) @@
867
			$user = false;
868
		}
869
870
		if ( count( $anon_ips ) ) {
871
			$anon = $this->msg( 'anonusers' )
872
				->rawParams( $lang->listToText( $anon_ips ) )
873
				->params( count( $anon_ips ) )->escaped();
874
		} else {
875
			$anon = false;
876
		}
877
878
		# This is the big list, all mooshed together. We sift for blank strings
879
		$fulllist = [];