Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 1 location

@@ 5141-5148 (lines=8) @@
5138
	 *
5139
	 * @since 5.4
5140
	 **/
5141
	public static function set_min_time_limit( $min_timeout ) {
5142
		$timeout = self::get_max_execution_time();
5143
		if ( $timeout < $min_timeout ) {
5144
			$timeout = $min_timeout;
5145
			set_time_limit( $timeout );
5146
		}
5147
		return $timeout;
5148
	}
5149
5150
	/**
5151
	 * Takes the response from the Jetpack register new site endpoint and

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

@@ 1043-1050 (lines=8) @@
1040
	 * @since 5.4
1041
	 * @param Integer $min_timeout the minimum timeout value.
1042
	 **/
1043
	public function set_min_time_limit( $min_timeout ) {
1044
		$timeout = $this->get_max_execution_time();
1045
		if ( $timeout < $min_timeout ) {
1046
			$timeout = $min_timeout;
1047
			set_time_limit( $timeout );
1048
		}
1049
		return $timeout;
1050
	}
1051
1052
	/**
1053
	 * Get our assumed site creation date.