Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 1 location

@@ 4981-4988 (lines=8) @@
4978
	 *
4979
	 * @since 5.4
4980
	 **/
4981
	public static function set_min_time_limit( $min_timeout ) {
4982
		$timeout = self::get_max_execution_time();
4983
		if ( $timeout < $min_timeout ) {
4984
			$timeout = $min_timeout;
4985
			set_time_limit( $timeout );
4986
		}
4987
		return $timeout;
4988
	}
4989
4990
	/**
4991
	 * Takes the response from the Jetpack register new site endpoint and

packages/connection/src/Manager.php 1 location

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