Loading src/Command/SignatureUpdateAllProcessesCommand.php +7 −10 Original line number Diff line number Diff line Loading @@ -26,12 +26,6 @@ class SignatureUpdateAllProcessesCommand extends SignatureCommandAbstract $headers = ['id', 'label', 'status', 'msg']; $rows = []; foreach ($this->getProcessService()->getProcesses() as $process) { $msg = "Rien à faire"; $row = [ $process->getId(), $process->getLabel(), $process->getStatusText(), ]; if( $process->isTriggerable() ){ try { $this->getProcessService()->trigger($process); Loading @@ -39,13 +33,16 @@ class SignatureUpdateAllProcessesCommand extends SignatureCommandAbstract } catch (\Exception $e) { $msg = 'Error : ' . $e->getMessage(); } $rows[] = [ $process->getId(), $process->getLabel(), $process->getStatusText(), ]; } $row[] = $msg; $rows[] = $row; } if( count($rows) > 0 ){ $io->table($headers, $rows); } return self::SUCCESS; } } No newline at end of file Loading
src/Command/SignatureUpdateAllProcessesCommand.php +7 −10 Original line number Diff line number Diff line Loading @@ -26,12 +26,6 @@ class SignatureUpdateAllProcessesCommand extends SignatureCommandAbstract $headers = ['id', 'label', 'status', 'msg']; $rows = []; foreach ($this->getProcessService()->getProcesses() as $process) { $msg = "Rien à faire"; $row = [ $process->getId(), $process->getLabel(), $process->getStatusText(), ]; if( $process->isTriggerable() ){ try { $this->getProcessService()->trigger($process); Loading @@ -39,13 +33,16 @@ class SignatureUpdateAllProcessesCommand extends SignatureCommandAbstract } catch (\Exception $e) { $msg = 'Error : ' . $e->getMessage(); } $rows[] = [ $process->getId(), $process->getLabel(), $process->getStatusText(), ]; } $row[] = $msg; $rows[] = $row; } if( count($rows) > 0 ){ $io->table($headers, $rows); } return self::SUCCESS; } } No newline at end of file