- Status changed to Needs work
over 1 year ago 12:38am 13 September 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
+++ b/src/PreviewSiteBuilder.php @@ -221,7 +221,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { - public static function operationMarkDeploymentStarted(int $build_id, array &$context) { + public static function operationMarkDeploymentStarted(int $build_id, &$context) { $context['results']['build_id'] = $build_id; PreviewSiteBuild::load($build_id)->startDeployment(\Drupal::state()); $context['message'] = new TranslatableMarkup('Marked deployment as building'); @@ -238,7 +238,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { @@ -238,7 +238,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { /** * Batch callback. */ - public static function operationProcessGenerate(int $build_id, array &$context) { + public static function operationProcessGenerate(int $build_id, &$context) { $remaining = self::factory()->processSiteGeneration(PreviewSiteBuild::load($build_id)); self::updateFinishedPercent($remaining, $context); $context['results']['generated'] = ($context['results']['generated'] ?? 0) + 1; @@ -248,7 +248,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { @@ -248,7 +248,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { /** * Batch callback. */ - public static function operationProcessAssets(int $build_id, array &$context) { + public static function operationProcessAssets(int $build_id, &$context) { $remaining = self::factory()->processAssetGeneration(PreviewSiteBuild::load($build_id)); self::updateFinishedPercent($remaining, $context); $context['results']['assets'] = ($context['results']['assets'] ?? 0) + 1; @@ -266,7 +266,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { @@ -266,7 +266,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { /** * Batch callback. */ - public static function operationProcessDeploy(int $build_id, array &$context) { + public static function operationProcessDeploy(int $build_id, &$context) { $remaining = self::factory()->processSiteDeployment(PreviewSiteBuild::load($build_id)); self::updateFinishedPercent($remaining, $context); $context['results']['deployed'] = ($context['results']['deployed'] ?? 0) + 1; @@ -276,7 +276,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { @@ -276,7 +276,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { /** * Batch callback. */ - public static function operationMarkDeploymentFinished(int $build_id, array &$context) { + public static function operationMarkDeploymentFinished(int $build_id, &$context) { /** @var \Drupal\preview_site\Entity\PreviewSiteBuildInterface $build */ $build = PreviewSiteBuild::load($build_id); if (!isset($context['sandbox']['clean_up_file_ids'])) { @@ -338,7 +338,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { @@ -338,7 +338,7 @@ class PreviewSiteBuilder implements ContainerInjectionInterface { * @param array $context * Batch context. */ - protected static function updateFinishedPercent(int $remaining, array &$context): void { + protected static function updateFinishedPercent(int $remaining, &$context): void {
some out of scope changes here