Completed
Push — master ( 9d12f9...1540ef )
by Gaetano
04:25
created
Command/CleanupCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         $this->setName('kaliop:workflows:cleanup')
19 19
             ->addOption('older-than', 'o', InputOption::VALUE_REQUIRED, "Only remove workflows which have finished since N minutes", 86400)
20
-            ->addOption('failed', 'f',  InputOption::VALUE_NONE, "Remove failed instead of finished workflows")
20
+            ->addOption('failed', 'f', InputOption::VALUE_NONE, "Remove failed instead of finished workflows")
21 21
             ->addOption('dry-run', 'd', InputOption::VALUE_NONE, "Only list workflows to remove, without actually doing it")
22 22
             ->setDescription('Removes old workflows from the list of executed ones')
23 23
         ;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 break;
49 49
             }
50 50
 
51
-            foreach($workflows as $workflow) {
51
+            foreach ($workflows as $workflow) {
52 52
                 if ($workflow->executionDate < $maxAge) {
53 53
                     $toRemove[] = $workflow;
54 54
                 }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
             $total += count($workflows);
58 58
             $offset += $limit;
59
-        } while(true);
59
+        } while (true);
60 60
 
61 61
         if ($input->getOption('dry-run')) {
62 62
             $action = "To remove: ";
Please login to merge, or discard this patch.