Code Duplication    Length = 5-5 lines in 2 locations

includes/logging/RightsLogFormatter.php 2 locations

@@ 82-86 (lines=5) @@
79
		$newGroups = $this->makeGroupArray( $params[4] );
80
81
		$userName = $this->entry->getTarget()->getText();
82
		if ( !$this->plaintext && count( $oldGroups ) ) {
83
			foreach ( $oldGroups as &$group ) {
84
				$group = User::getGroupMember( $group, $userName );
85
			}
86
		}
87
		if ( !$this->plaintext && count( $newGroups ) ) {
88
			foreach ( $newGroups as &$group ) {
89
				$group = User::getGroupMember( $group, $userName );
@@ 87-91 (lines=5) @@
84
				$group = User::getGroupMember( $group, $userName );
85
			}
86
		}
87
		if ( !$this->plaintext && count( $newGroups ) ) {
88
			foreach ( $newGroups as &$group ) {
89
				$group = User::getGroupMember( $group, $userName );
90
			}
91
		}
92
93
		$lang = $this->context->getLanguage();
94
		if ( count( $oldGroups ) ) {