Code Duplication    Length = 4-8 lines in 2 locations

includes/user/User.php 2 locations

@@ 1875-1878 (lines=4) @@
1872
		if ( isset( $limits['ip-all'] ) ) {
1873
			$ip = $this->getRequest()->getIP();
1874
			// ignore if user limit is more permissive
1875
			if ( $isNewbie || $userLimit === false
1876
				|| $limits['ip-all'][0] / $limits['ip-all'][1] > $userLimit[0] / $userLimit[1] ) {
1877
				$keys["mediawiki:limiter:$action:ip-all:$ip"] = $limits['ip-all'];
1878
			}
1879
		}
1880
1881
		// subnet-based limits for all ping-limitable users
@@ 1885-1892 (lines=8) @@
1882
		if ( isset( $limits['subnet-all'] ) ) {
1883
			$ip = $this->getRequest()->getIP();
1884
			$subnet = IP::getSubnet( $ip );
1885
			if ( $subnet !== false ) {
1886
				// ignore if user limit is more permissive
1887
				if ( $isNewbie || $userLimit === false
1888
					|| $limits['ip-all'][0] / $limits['ip-all'][1]
1889
					> $userLimit[0] / $userLimit[1] ) {
1890
					$keys["mediawiki:limiter:$action:subnet-all:$subnet"] = $limits['subnet-all'];
1891
				}
1892
			}
1893
		}
1894
1895
		$cache = ObjectCache::getLocalClusterInstance();