Code Duplication    Length = 5-5 lines in 2 locations

includes/libs/IP.php 2 locations

@@ 535-539 (lines=5) @@
532
			# Single IP
533
			$start = $end = self::toHex( $range );
534
		}
535
		if ( $start === false || $end === false ) {
536
			return [ false, false ];
537
		} else {
538
			return [ $start, $end ];
539
		}
540
	}
541
542
	/**
@@ 623-627 (lines=5) @@
620
			# Single IP
621
			$start = $end = self::toHex( $range );
622
		}
623
		if ( $start === false || $end === false ) {
624
			return [ false, false ];
625
		} else {
626
			return [ $start, $end ];
627
		}
628
	}
629
630
	/**