Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1124-1131 (lines=8) @@
1121
	 * @since 5.4
1122
	 * @param Integer $min_timeout the minimum timeout value.
1123
	 **/
1124
	public function set_min_time_limit( $min_timeout ) {
1125
		$timeout = $this->get_max_execution_time();
1126
		if ( $timeout < $min_timeout ) {
1127
			$timeout = $min_timeout;
1128
			set_time_limit( $timeout );
1129
		}
1130
		return $timeout;
1131
	}
1132
1133
	/**
1134
	 * Get our assumed site creation date.

class.jetpack.php 1 location

@@ 5417-5424 (lines=8) @@
5414
	 *
5415
	 * @since 5.4
5416
	 **/
5417
	public static function set_min_time_limit( $min_timeout ) {
5418
		$timeout = self::get_max_execution_time();
5419
		if ( $timeout < $min_timeout ) {
5420
			$timeout = $min_timeout;
5421
			set_time_limit( $timeout );
5422
		}
5423
		return $timeout;
5424
	}
5425
5426
	/**
5427
	 * Takes the response from the Jetpack register new site endpoint and