| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class SiteConfBuilder |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Build the nginx.conf file for a given site |
||
| 11 | * |
||
| 12 | * @param \App\Models\Site $site |
||
| 13 | * @throws \Throwable |
||
| 14 | */ |
||
| 15 | 1 | public function build(Site $site) |
|
| 24 | ); |
||
| 25 | 1 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Destroy the nginx.conf conf for a given site |
||
| 29 | * |
||
| 30 | * @param \App\Models\Site $site |
||
| 31 | */ |
||
| 32 | public function destroy(Site $site) |
||
| 37 |
If you suppress an error, we recommend checking for the error condition explicitly: