Notifier/src/Kreta/Notifier/Infrastructure/Symfony/CliCommand/LoadFakeNotificationsCommand.php 1 location
|
@@ 71-78 (lines=8) @@
|
| 68 |
|
$output->writeln('The fake notifications are successfully loaded'); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
private function purgeDatabases() : void |
| 72 |
|
{ |
| 73 |
|
$i = 0; |
| 74 |
|
while ($i < $this->amount()) { |
| 75 |
|
$this->redis->del($this->type() . '-' . $this->dataOfIndex($i)); |
| 76 |
|
++$i; |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
protected function type() : string |
| 81 |
|
{ |
Notifier/src/Kreta/Notifier/Infrastructure/Symfony/CliCommand/LoadFakeUsersCommand.php 1 location
|
@@ 57-64 (lines=8) @@
|
| 54 |
|
$output->writeln('The fake users are successfully loaded'); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
private function purgeDatabases() : void |
| 58 |
|
{ |
| 59 |
|
$i = 0; |
| 60 |
|
while ($i < $this->userFakeData->amount()) { |
| 61 |
|
$this->redis->del('user-' . $this->userFakeData->userOfIndex($i)); |
| 62 |
|
++$i; |
| 63 |
|
} |
| 64 |
|
} |
| 65 |
|
} |
| 66 |
|
|