| Conditions | 3 |
| Paths | 4 |
| Total Lines | 43 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function handleInternal() |
||
| 35 | { |
||
| 36 | /* |
||
| 37 | |-------------------------------------------------------------------------- |
||
| 38 | | Topics |
||
| 39 | |-------------------------------------------------------------------------- |
||
| 40 | | |
||
| 41 | */ |
||
| 42 | foreach ($this->carrot->container()->topics()->all() as $entity) { |
||
| 43 | $entity->delete(); |
||
| 44 | |||
| 45 | $this->output->writeln( |
||
| 46 | vsprintf( |
||
| 47 | 'Deleted TOPIC <info>%s</info> - <fg=yellow>%s</>', |
||
| 48 | [ |
||
| 49 | $entity->id(), |
||
| 50 | $entity->name(), |
||
| 51 | ] |
||
| 52 | ) |
||
| 53 | ); |
||
| 54 | } |
||
| 55 | |||
| 56 | /* |
||
| 57 | |-------------------------------------------------------------------------- |
||
| 58 | | Queues |
||
| 59 | |-------------------------------------------------------------------------- |
||
| 60 | | |
||
| 61 | */ |
||
| 62 | foreach ($this->carrot->container()->queues()->all() as $entity) { |
||
| 63 | $entity->delete(); |
||
| 64 | |||
| 65 | $this->output->writeln( |
||
| 66 | vsprintf( |
||
| 67 | 'Deleted QUEUE <info>%s</info> - <fg=yellow>%s</>', |
||
| 68 | [ |
||
| 69 | $entity->id(), |
||
| 70 | $entity->name(), |
||
| 71 | ] |
||
| 72 | ) |
||
| 73 | ); |
||
| 74 | } |
||
| 75 | |||
| 76 | return 0; |
||
| 77 | } |
||
| 80 |