Conditions | 4 |
Paths | 8 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
28 | 3 | public function handle(): void |
|
29 | { |
||
30 | 3 | $wasUp = $this->porter->isUp(); |
|
31 | |||
32 | 3 | if ($wasUp) { |
|
33 | 1 | $this->call('stop'); |
|
34 | } |
||
35 | |||
36 | 3 | $this->porter->compose(); |
|
37 | |||
38 | 3 | foreach (Site::all() as $site) { |
|
39 | 2 | $site->buildFiles(); |
|
40 | } |
||
41 | |||
42 | 3 | if ($wasUp) { |
|
43 | 1 | $this->call('start'); |
|
44 | } |
||
47 |