Code Duplication    Length = 8-8 lines in 2 locations

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

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

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

@@ 5433-5440 (lines=8) @@
5430
	 *
5431
	 * @since 5.4
5432
	 **/
5433
	public static function set_min_time_limit( $min_timeout ) {
5434
		$timeout = self::get_max_execution_time();
5435
		if ( $timeout < $min_timeout ) {
5436
			$timeout = $min_timeout;
5437
			set_time_limit( $timeout );
5438
		}
5439
		return $timeout;
5440
	}
5441
5442
	/**
5443
	 * Takes the response from the Jetpack register new site endpoint and