| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 2 | public function handle(): void |
|
| 31 | { |
||
| 32 | /** @var CertificateBuilder $builder */ |
||
| 33 | 2 | $builder = app(CertificateBuilder::class); |
|
| 34 | 2 | $builder->clearCertificates((bool) $this->option('clear-ca')); |
|
| 35 | |||
| 36 | // The porter_default certificate is used for serving error pages |
||
| 37 | // when a domain has not been set up in Porter |
||
| 38 | 2 | $builder->build('porter_default'); |
|
| 39 | |||
| 40 | 2 | foreach (Site::where('secure', true)->get() as $site) { |
|
| 41 | 1 | $site->buildCertificate(); |
|
| 42 | } |
||
| 45 |