Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 1 location

@@ 5046-5053 (lines=8) @@
5043
	 *
5044
	 * @since 5.4
5045
	 **/
5046
	public static function set_min_time_limit( $min_timeout ) {
5047
		$timeout = self::get_max_execution_time();
5048
		if ( $timeout < $min_timeout ) {
5049
			$timeout = $min_timeout;
5050
			set_time_limit( $timeout );
5051
		}
5052
		return $timeout;
5053
	}
5054
5055
	/**
5056
	 * Takes the response from the Jetpack register new site endpoint and

packages/connection/src/Manager.php 1 location

@@ 966-973 (lines=8) @@
963
	 * @since 5.4
964
	 * @param Integer $min_timeout the minimum timeout value.
965
	 **/
966
	public function set_min_time_limit( $min_timeout ) {
967
		$timeout = $this->get_max_execution_time();
968
		if ( $timeout < $min_timeout ) {
969
			$timeout = $min_timeout;
970
			set_time_limit( $timeout );
971
		}
972
		return $timeout;
973
	}
974
975
	/**
976
	 * Get our assumed site creation date.