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

@@ 5485-5492 (lines=8) @@
5482
	 *
5483
	 * @since 5.4
5484
	 **/
5485
	public static function set_min_time_limit( $min_timeout ) {
5486
		$timeout = self::get_max_execution_time();
5487
		if ( $timeout < $min_timeout ) {
5488
			$timeout = $min_timeout;
5489
			set_time_limit( $timeout );
5490
		}
5491
		return $timeout;
5492
	}
5493
5494
	/**
5495
	 * Takes the response from the Jetpack register new site endpoint and