Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 1 location

@@ 5362-5369 (lines=8) @@
5359
	 *
5360
	 * @since 5.4
5361
	 **/
5362
	public static function set_min_time_limit( $min_timeout ) {
5363
		$timeout = self::get_max_execution_time();
5364
		if ( $timeout < $min_timeout ) {
5365
			$timeout = $min_timeout;
5366
			set_time_limit( $timeout );
5367
		}
5368
		return $timeout;
5369
	}
5370
5371
	/**
5372
	 * Takes the response from the Jetpack register new site endpoint and

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

@@ 1253-1260 (lines=8) @@
1250
	 * @since 5.4
1251
	 * @param Integer $min_timeout the minimum timeout value.
1252
	 **/
1253
	public function set_min_time_limit( $min_timeout ) {
1254
		$timeout = $this->get_max_execution_time();
1255
		if ( $timeout < $min_timeout ) {
1256
			$timeout = $min_timeout;
1257
			set_time_limit( $timeout );
1258
		}
1259
		return $timeout;
1260
	}
1261
1262
	/**
1263
	 * Get our assumed site creation date.