Code Duplication    Length = 8-8 lines in 2 locations

packages/connection/src/Manager.php 1 location

@@ 954-961 (lines=8) @@
951
	 * @since 5.4
952
	 * @param Integer $min_timeout the minimum timeout value.
953
	 **/
954
	public function set_min_time_limit( $min_timeout ) {
955
		$timeout = $this->get_max_execution_time();
956
		if ( $timeout < $min_timeout ) {
957
			$timeout = $min_timeout;
958
			set_time_limit( $timeout );
959
		}
960
		return $timeout;
961
	}
962
963
	/**
964
	 * Get our assumed site creation date.

class.jetpack.php 1 location

@@ 5021-5028 (lines=8) @@
5018
	 *
5019
	 * @since 5.4
5020
	 **/
5021
	public static function set_min_time_limit( $min_timeout ) {
5022
		$timeout = self::get_max_execution_time();
5023
		if ( $timeout < $min_timeout ) {
5024
			$timeout = $min_timeout;
5025
			set_time_limit( $timeout );
5026
		}
5027
		return $timeout;
5028
	}
5029
5030
	/**
5031
	 * Takes the response from the Jetpack register new site endpoint and