Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1163-1170 (lines=8) @@
1160
	 * @since 5.4
1161
	 * @param Integer $min_timeout the minimum timeout value.
1162
	 **/
1163
	public function set_min_time_limit( $min_timeout ) {
1164
		$timeout = $this->get_max_execution_time();
1165
		if ( $timeout < $min_timeout ) {
1166
			$timeout = $min_timeout;
1167
			set_time_limit( $timeout );
1168
		}
1169
		return $timeout;
1170
	}
1171
1172
	/**
1173
	 * Get our assumed site creation date.

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

@@ 5467-5474 (lines=8) @@
5464
	 *
5465
	 * @since 5.4
5466
	 **/
5467
	public static function set_min_time_limit( $min_timeout ) {
5468
		$timeout = self::get_max_execution_time();
5469
		if ( $timeout < $min_timeout ) {
5470
			$timeout = $min_timeout;
5471
			set_time_limit( $timeout );
5472
		}
5473
		return $timeout;
5474
	}
5475
5476
	/**
5477
	 * Takes the response from the Jetpack register new site endpoint and