Completed
Push — master ( fb5480...789cd5 )
by Antonio Carlos
02:45
created

Flush   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 28
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fire() 0 6 1
1
<?php
2
3
namespace PragmaRX\Firewall\Vendor\Laravel\Artisan;
4
5
use Symfony\Component\Console\Input\InputOption;
6
7
class Flush extends Base
8
{
9
    /**
10
     * The console command name.
11
     *
12
     * @var string
13
     */
14
    protected $name = 'firewall:cache:clear';
15
16
    /**
17
     * The console command description.
18
     *
19
     * @var string
20
     */
21
    protected $description = 'Clear the firewall cache.';
22
23
    /**
24
     * Clear the list.
25
     *
26
     * @return mixed
27
     */
28
    public function fire()
29
    {
30
        app('firewall')->clear();
31
32
        $this->info('Cache cleared.');
33
    }
34
}
35