Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
40 | 2 | public function fire() { |
|
41 | 2 | $clientsOnly = $this->option('client-only'); |
|
42 | 2 | $serversOnly = $this->option('server-only'); |
|
43 | |||
44 | 2 | if (!$serversOnly) { |
|
45 | 1 | $this->stopInstances(storage_path('clients.pids')); |
|
|
|||
46 | } |
||
47 | |||
48 | 2 | if (!$clientsOnly) { |
|
49 | 1 | $this->stopInstances(storage_path('servers.pids')); |
|
50 | } |
||
81 | } |