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

@@ 5497-5504 (lines=8) @@
5494
	 *
5495
	 * @since 5.4
5496
	 **/
5497
	public static function set_min_time_limit( $min_timeout ) {
5498
		$timeout = self::get_max_execution_time();
5499
		if ( $timeout < $min_timeout ) {
5500
			$timeout = $min_timeout;
5501
			set_time_limit( $timeout );
5502
		}
5503
		return $timeout;
5504
	}
5505
5506
	/**
5507
	 * Takes the response from the Jetpack register new site endpoint and