@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $data = json_decode($this->redis->get($key), true); |
| 50 | 50 | |
| 51 | 51 | if ($data['beingUpdated'] == 1) { |
| 52 | - $output->writeln("Server {$server} is currently being updated. Deferring."); |
|
| 52 | + $output->writeln("server {$server} is currently being updated. Deferring."); |
|
| 53 | 53 | continue; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $alerts = $this->alertRepo->fireStatementAndReturn($query); |
| 74 | 74 | $count = count($alerts); |
| 75 | 75 | |
| 76 | - $output->writeln("Detected {$count} alerts to be archived"); |
|
| 76 | + $output->writeln("detected {$count} alerts to be archived"); |
|
| 77 | 77 | |
| 78 | 78 | if ($count > 0) { |
| 79 | 79 | $tables = [ |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | ['json' => $payload] |
| 116 | 116 | ); |
| 117 | 117 | |
| 118 | - $output->writeln("Archived {$records} records!"); |
|
| 118 | + $output->writeln("archived {$records} records!"); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $this->recordsArchived += $stm->rowCount(); |
| 184 | 184 | $records += $stm->rowCount(); |
| 185 | 185 | |
| 186 | - $output->writeln("Archived {$stm->rowCount()} from Alert #{$alert['ResultID']} - Table {$table}"); |
|
| 186 | + $output->writeln("archived {$stm->rowCount()} from Alert #{$alert['ResultID']} - Table {$table}"); |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | $this->db->commit(); |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | if ($type !== 'dates' && !in_array($val, $filters)) { |
| 78 | - throw new InvalidArgumentException("Unrecognized {$type}. Please check the DATA you sent."); |
|
| 78 | + throw new InvalidArgumentException("unrecognized {$type}. Please check the DATA you sent."); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if ($type === 'dates') { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $alert = $this->alertRepo->readSingleById($id, 'primary', true); |
| 62 | 62 | |
| 63 | 63 | if (empty($force) && empty($alert)) { |
| 64 | - $output->writeln("ALERT {$id} DOES NOT EXIST!"); |
|
| 64 | + $output->writeln("alert {$id} DOES NOT EXIST!"); |
|
| 65 | 65 | return false; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $this->deleteAlert($id); |
| 107 | 107 | |
| 108 | 108 | if ($this->verbose === 1) { |
| 109 | - $output->writeln("Alert {$id} successfully deleted!"); |
|
| 109 | + $output->writeln("alert {$id} successfully deleted!"); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | return true; |