Code Duplication    Length = 8-8 lines in 2 locations

packages/connection/src/class-manager.php 1 location

@@ 1079-1086 (lines=8) @@
1076
	 * @since 5.4
1077
	 * @param Integer $min_timeout the minimum timeout value.
1078
	 **/
1079
	public function set_min_time_limit( $min_timeout ) {
1080
		$timeout = $this->get_max_execution_time();
1081
		if ( $timeout < $min_timeout ) {
1082
			$timeout = $min_timeout;
1083
			set_time_limit( $timeout );
1084
		}
1085
		return $timeout;
1086
	}
1087
1088
	/**
1089
	 * Get our assumed site creation date.

class.jetpack.php 1 location

@@ 5228-5235 (lines=8) @@
5225
	 *
5226
	 * @since 5.4
5227
	 **/
5228
	public static function set_min_time_limit( $min_timeout ) {
5229
		$timeout = self::get_max_execution_time();
5230
		if ( $timeout < $min_timeout ) {
5231
			$timeout = $min_timeout;
5232
			set_time_limit( $timeout );
5233
		}
5234
		return $timeout;
5235
	}
5236
5237
	/**
5238
	 * Takes the response from the Jetpack register new site endpoint and