@@ -342,7 +342,7 @@ |
||
342 | 342 | } |
343 | 343 | |
344 | 344 | if (! in_array($id, $filters)) { |
345 | - throw new InvalidArgumentException("Unrecognized {$mode}. Please check the IDs you sent."); |
|
345 | + throw new InvalidArgumentException("unrecognized {$mode}. Please check the IDs you sent."); |
|
346 | 346 | } |
347 | 347 | } |
348 | 348 |
@@ -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 |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $alert = $this->alertRepo->readSingleById($id, 'primary', true); |
55 | 55 | |
56 | 56 | if (empty($force) && empty($id)) { |
57 | - $output->writeln("ALERT {$id} DOES NOT EXIST!"); |
|
57 | + $output->writeln("alert {$id} DOES NOT EXIST!"); |
|
58 | 58 | return false; |
59 | 59 | } |
60 | 60 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $this->deleteAlert($id); |
100 | 100 | |
101 | 101 | if ($this->verbose === 1) { |
102 | - $output->writeln("Alert {$id} successfully deleted!"); |
|
102 | + $output->writeln("alert {$id} successfully deleted!"); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | return true; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $alerts = $this->alertRepo->fireStatementAndReturn($query); |
73 | 73 | $count = count($alerts); |
74 | 74 | |
75 | - $output->writeln("Detected {$count} alerts to be archived"); |
|
75 | + $output->writeln("detected {$count} alerts to be archived"); |
|
76 | 76 | |
77 | 77 | if ($count > 0) { |
78 | 78 | $tables = [ |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | ['json' => $payload ] |
115 | 115 | ); |
116 | 116 | |
117 | - $output->writeln("Archived {$records} records!"); |
|
117 | + $output->writeln("archived {$records} records!"); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
@@ -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(); |