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

@@ 839-845 (lines=7) @@
836
		$real = $lang->listToText( $real_names );
837
838
		# "ThisSite user(s) A, B and C"
839
		if ( count( $user_names ) ) {
840
			$user = $this->msg( 'siteusers' )
841
				->rawParams( $lang->listToText( $user_names ) )
842
				->params( count( $user_names ) )->escaped();
843
		} else {
844
			$user = false;
845
		}
846
847
		if ( count( $anon_ips ) ) {
848
			$anon = $this->msg( 'anonusers' )
@@ 847-853 (lines=7) @@
844
			$user = false;
845
		}
846
847
		if ( count( $anon_ips ) ) {
848
			$anon = $this->msg( 'anonusers' )
849
				->rawParams( $lang->listToText( $anon_ips ) )
850
				->params( count( $anon_ips ) )->escaped();
851
		} else {
852
			$anon = false;
853
		}
854
855
		# This is the big list, all mooshed together. We sift for blank strings
856
		$fulllist = [];