@@ -46,8 +46,7 @@ public function workflowWait(
4646 'Site {site} does not exist. ' ,
4747 ['site ' => $ site_env_id ]
4848 );
49- }
50- else {
49+ } else {
5150 $ this ->log ()->notice ('Waiting for workflow on site {site} environment {env}. ' , [
5251 'site ' => $ site ->getName (),
5352 'env ' => $ site_env_id ,
@@ -59,8 +58,7 @@ public function workflowWait(
5958 'Environment {env} does not exist for site {site}. ' ,
6059 ['env ' => $ site_env_id , 'site ' => $ site ->getName ()]
6160 );
62- }
63- else {
61+ } else {
6462 $ this ->log ()->notice ('Waiting for workflow on environment {env}. ' , ['env ' => $ env ->getName ()]);
6563 }
6664 $ env_name = $ env ->getName ();
@@ -190,7 +188,10 @@ public function waitForCommit(
190188 $ wfl = null ;
191189 $ wflc = $ site ->getWorkflowLogs ();
192190 if (!$ wflc instanceof WorkflowLogsCollection) {
193- throw new TerminusException ('Workflow logs could not be retrieved for site: {site} ' , ['site ' => $ site ->id ,]);
191+ throw new TerminusException (
192+ 'Workflow logs could not be retrieved for site: {site} ' ,
193+ ['site ' => $ site ->id ,]
194+ );
194195 }
195196
196197 // Remove workflows that are not for the environment $env_name.
@@ -217,14 +218,20 @@ public function waitForCommit(
217218 ]);
218219 $ current_time = time ();
219220 if ($ end_time > 0 && $ current_time >= $ end_time ) {
220- throw new TerminusException ('Exceeded maximum wait time of {max} seconds. ' , ['max ' => $ maxWaitInSeconds ]);
221+ throw new TerminusException (
222+ 'Exceeded maximum wait time of {max} seconds. ' ,
223+ ['max ' => $ maxWaitInSeconds ]
224+ );
221225 }
222226 }
223227
224228 while (!$ wfl ->isFinished ()) {
225229 $ current_time = time ();
226230 if ($ end_time > 0 && $ current_time >= $ end_time ) {
227- throw new TerminusException ('Exceeded maximum wait time of {max} seconds. ' , ['max ' => $ maxWaitInSeconds ]);
231+ throw new TerminusException (
232+ 'Exceeded maximum wait time of {max} seconds. ' ,
233+ ['max ' => $ maxWaitInSeconds ]
234+ );
228235 }
229236 $ this ->log ()->notice ('Waiting for workflow {id} to complete. ' , ['id ' => $ wfl ->id ,]);
230237 sleep ($ this ->getConfig ()->get ('refresh_workflow_delay ' , 30 ));
0 commit comments