| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 1 | public function fire() |
|
| 29 | { |
||
| 30 | 1 | if (!$this->option('force')) { |
|
| 31 | $this->error('This command won\'t run unless you use --force.'); |
||
| 32 | } else { |
||
| 33 | 1 | if (app('firewall')->clear()) { |
|
| 34 | 1 | $this->info('List cleared.'); |
|
| 35 | } else { |
||
| 36 | $this->info('There were no IP addresses to be deleted.'); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | 1 | } |
|
| 40 | |||
| 53 |