Code Duplication    Length = 5-5 lines in 2 locations

includes/Title.php 2 locations

@@ 1966-1970 (lines=5) @@
1963
				$errors[] = $user->isAnon() ? [ 'nocreatetext' ] : [ 'nocreate-loggedin' ];
1964
			}
1965
		} elseif ( $action == 'move' ) {
1966
			if ( !$user->isAllowed( 'move-rootuserpages' )
1967
					&& $this->mNamespace == NS_USER && !$this->isSubpage() ) {
1968
				// Show user page-specific message only if the user can move other pages
1969
				$errors[] = [ 'cant-move-user-page' ];
1970
			}
1971
1972
			// Check if user is allowed to move files if it's a file
1973
			if ( $this->mNamespace == NS_FILE && !$user->isAllowed( 'movefile' ) ) {
@@ 1997-2001 (lines=5) @@
1994
			if ( !$user->isAllowed( 'move' ) ) {
1995
				// User can't move anything
1996
				$errors[] = [ 'movenotallowed' ];
1997
			} elseif ( !$user->isAllowed( 'move-rootuserpages' )
1998
					&& $this->mNamespace == NS_USER && !$this->isSubpage() ) {
1999
				// Show user page-specific message only if the user can move other pages
2000
				$errors[] = [ 'cant-move-to-user-page' ];
2001
			} elseif ( !$user->isAllowed( 'move-categorypages' )
2002
					&& $this->mNamespace == NS_CATEGORY ) {
2003
				// Show category page-specific message only if the user can move other pages
2004
				$errors[] = [ 'cant-move-to-category-page' ];