Code Duplication    Length = 8-8 lines in 2 locations

packages/connection/src/Manager.php 1 location

@@ 942-949 (lines=8) @@
939
	 * @since 5.4
940
	 * @param Integer $min_timeout the minimum timeout value.
941
	 **/
942
	public function set_min_time_limit( $min_timeout ) {
943
		$timeout = $this->get_max_execution_time();
944
		if ( $timeout < $min_timeout ) {
945
			$timeout = $min_timeout;
946
			set_time_limit( $timeout );
947
		}
948
		return $timeout;
949
	}
950
951
	/**
952
	 * Get our assumed site creation date.

class.jetpack.php 1 location

@@ 4995-5002 (lines=8) @@
4992
	 *
4993
	 * @since 5.4
4994
	 **/
4995
	public static function set_min_time_limit( $min_timeout ) {
4996
		$timeout = self::get_max_execution_time();
4997
		if ( $timeout < $min_timeout ) {
4998
			$timeout = $min_timeout;
4999
			set_time_limit( $timeout );
5000
		}
5001
		return $timeout;
5002
	}
5003
5004
	/**
5005
	 * Takes the response from the Jetpack register new site endpoint and