Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
42 | 2 | public function fire() |
|
43 | { |
||
44 | 2 | $clientsOnly = $this->option('client-only'); |
|
45 | 2 | $serversOnly = $this->option('server-only'); |
|
46 | |||
47 | 2 | if (!$serversOnly) { |
|
48 | 1 | $this->stopInstances(storage_path(self::CLIENT_PID_FILE)); |
|
|
|||
49 | } |
||
50 | |||
51 | 2 | if (!$clientsOnly) { |
|
52 | 1 | $this->stopInstances(storage_path(self::SERVER_PID_FILE)); |
|
53 | } |
||
82 |