Code Duplication    Length = 8-8 lines in 2 locations

projects/plugins/jetpack/class.jetpack.php 1 location

@@ 5479-5486 (lines=8) @@
5476
	 *
5477
	 * @since 5.4
5478
	 **/
5479
	public static function set_min_time_limit( $min_timeout ) {
5480
		$timeout = self::get_max_execution_time();
5481
		if ( $timeout < $min_timeout ) {
5482
			$timeout = $min_timeout;
5483
			set_time_limit( $timeout );
5484
		}
5485
		return $timeout;
5486
	}
5487
5488
	/**
5489
	 * Takes the response from the Jetpack register new site endpoint and

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

@@ 1214-1221 (lines=8) @@
1211
	 * @since 5.4
1212
	 * @param Integer $min_timeout the minimum timeout value.
1213
	 **/
1214
	public function set_min_time_limit( $min_timeout ) {
1215
		$timeout = $this->get_max_execution_time();
1216
		if ( $timeout < $min_timeout ) {
1217
			$timeout = $min_timeout;
1218
			set_time_limit( $timeout );
1219
		}
1220
		return $timeout;
1221
	}
1222
1223
	/**
1224
	 * Get our assumed site creation date.