From 0fd4244f3bdc9ba075d9aced419455b14af0432c Mon Sep 17 00:00:00 2001 From: Brian Weaver <87093053+namespacebrian@users.noreply.github.com> Date: Wed, 5 Mar 2025 09:49:44 -0500 Subject: [PATCH] more linting complaints --- src/Commands/Workflow/WaitCommand.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Commands/Workflow/WaitCommand.php b/src/Commands/Workflow/WaitCommand.php index d0fbc64fe..2c777ff34 100644 --- a/src/Commands/Workflow/WaitCommand.php +++ b/src/Commands/Workflow/WaitCommand.php @@ -166,13 +166,19 @@ public function waitForCommit( 'target_commit' => $target_commit, ]); if ($startTime->diff(new \DateTime())->s > $maxWaitInSeconds) { - throw new TerminusException('Exceeded maximum wait time of {max} seconds.', ['max' => $maxWaitInSeconds]); + throw new TerminusException( + 'Exceeded maximum wait time of {max} seconds.', + ['max' => $maxWaitInSeconds] + ); } } while (!$wfl->isFinished()) { if ($startTime->diff(new \DateTime())->s > $maxWaitInSeconds) { - throw new TerminusException('Exceeded maximum wait time of {max} seconds.', ['max' => $maxWaitInSeconds]); + throw new TerminusException( + 'Exceeded maximum wait time of {max} seconds.', + ['max' => $maxWaitInSeconds] + ); } $this->log()->notice('Waiting for workflow {id} to complete.', ['id' => $wfl->id,]); sleep($this->getConfig()->get('refresh_workflow_delay', 30));