Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 1 location

@@ 5091-5098 (lines=8) @@
5088
	 *
5089
	 * @since 5.4
5090
	 **/
5091
	public static function set_min_time_limit( $min_timeout ) {
5092
		$timeout = self::get_max_execution_time();
5093
		if ( $timeout < $min_timeout ) {
5094
			$timeout = $min_timeout;
5095
			set_time_limit( $timeout );
5096
		}
5097
		return $timeout;
5098
	}
5099
5100
	/**
5101
	 * Takes the response from the Jetpack register new site endpoint and

packages/connection/src/Manager.php 1 location

@@ 1006-1013 (lines=8) @@
1003
	 * @since 5.4
1004
	 * @param Integer $min_timeout the minimum timeout value.
1005
	 **/
1006
	public function set_min_time_limit( $min_timeout ) {
1007
		$timeout = $this->get_max_execution_time();
1008
		if ( $timeout < $min_timeout ) {
1009
			$timeout = $min_timeout;
1010
			set_time_limit( $timeout );
1011
		}
1012
		return $timeout;
1013
	}
1014
1015
	/**
1016
	 * Get our assumed site creation date.