From 0ff055ec76466996ce4544ad24e23d7acbfaf613 Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 9 Jun 2026 10:08:33 +0200 Subject: [PATCH] chore(rtt) : mirror flat-recovery cascade skip in verification snapshot command --- src/Command/DumpVerificationSnapshotCommand.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Command/DumpVerificationSnapshotCommand.php b/src/Command/DumpVerificationSnapshotCommand.php index e6b6167..e5114ec 100644 --- a/src/Command/DumpVerificationSnapshotCommand.php +++ b/src/Command/DumpVerificationSnapshotCommand.php @@ -636,6 +636,7 @@ final class DumpVerificationSnapshotCommand extends Command base50Minutes: $detail->base50Minutes, bonus50Minutes: $detail->bonus50Minutes, totalMinutes: $detail->totalMinutes, + isFlatRecovery: $detail->isFlatRecovery, ); continue; @@ -672,6 +673,7 @@ final class DumpVerificationSnapshotCommand extends Command base50Minutes: (int) round($detail->base50Minutes * $ratio), bonus50Minutes: (int) round($detail->bonus50Minutes * $ratio), totalMinutes: (int) round($detail->totalMinutes * $ratio), + isFlatRecovery: $detail->isFlatRecovery, ); } } @@ -692,7 +694,7 @@ final class DumpVerificationSnapshotCommand extends Command $cumulative25 = $carry->base25Minutes + $carry->bonus25Minutes; foreach ($weeks as $i => $week) { - if ($week->totalMinutes >= 0) { + if ($week->totalMinutes >= 0 || $week->isFlatRecovery) { $cumulative50 += $week->base50Minutes + $week->bonus50Minutes; $cumulative25 += $week->base25Minutes + $week->bonus25Minutes; @@ -714,6 +716,7 @@ final class DumpVerificationSnapshotCommand extends Command base50Minutes: $from50 > 0 ? -$from50 : 0, bonus50Minutes: 0, totalMinutes: $week->totalMinutes, + isFlatRecovery: $week->isFlatRecovery, ); }