A free open source IT asset/license management system
Add early return
Marcus Moore95b67ca1d3f3
diff --git a/app/Console/Commands/RegenerateAcceptances.php b/app/Console/Commands/RegenerateAcceptances.phpindex 67024075f0..f580b1487b 100644--- a/app/Console/Commands/RegenerateAcceptances.php+++ b/app/Console/Commands/RegenerateAcceptances.php@@ -409,16 +409,18 @@ class RegenerateAcceptances extends Commandprivate function printDeclinedAndExcluded(RegenerateAcceptancesResult $result): void{- if ($result->excludeDeclined) {- $this->newLine();- $this->info('Previously declined and excluded: '.$result->declinedAndExcluded.'.');-- if ($result->declinedRows !== []) {- $this->table(- ['User ID', 'User', 'Item', 'Item Type', 'Item ID', 'Units currently held'],- $result->declinedRows- );- }+ if (! $result->excludeDeclined) {+ return;+ }++ $this->newLine();+ $this->info('Previously declined and excluded: '.$result->declinedAndExcluded.'.');++ if ($result->declinedRows !== []) {+ $this->table(+ ['User ID', 'User', 'Item', 'Item Type', 'Item ID', 'Units currently held'],+ $result->declinedRows+ );}}