Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1214-1221 (lines=8) @@
1211
	 * @since 5.4
1212
	 * @param Integer $min_timeout the minimum timeout value.
1213
	 **/
1214
	public function set_min_time_limit( $min_timeout ) {
1215
		$timeout = $this->get_max_execution_time();
1216
		if ( $timeout < $min_timeout ) {
1217
			$timeout = $min_timeout;
1218
			set_time_limit( $timeout );
1219
		}
1220
		return $timeout;
1221
	}
1222
1223
	/**
1224
	 * Get our assumed site creation date.

projects/plugins/jetpack/class.jetpack.php 1 location

@@ 5510-5517 (lines=8) @@
5507
	 *
5508
	 * @since 5.4
5509
	 **/
5510
	public static function set_min_time_limit( $min_timeout ) {
5511
		$timeout = self::get_max_execution_time();
5512
		if ( $timeout < $min_timeout ) {
5513
			$timeout = $min_timeout;
5514
			set_time_limit( $timeout );
5515
		}
5516
		return $timeout;
5517
	}
5518
5519
	/**
5520
	 * Takes the response from the Jetpack register new site endpoint and