mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
Fix code styling
This commit is contained in:
committed by
github-actions[bot]
parent
81a2b3bd52
commit
9d3d2ee785
@@ -443,7 +443,7 @@ public function securedWithDates(): array
|
||||
{
|
||||
return collect($this->secured())->map(function ($site) {
|
||||
|
||||
$filePath = $this->certificatesPath() . '/' . $site . '.crt';
|
||||
$filePath = $this->certificatesPath().'/'.$site.'.crt';
|
||||
|
||||
$expiration = $this->cli->run("openssl x509 -enddate -noout -in $filePath");
|
||||
|
||||
@@ -511,7 +511,7 @@ public function renew($expireIn): void
|
||||
|
||||
$this->secure($url, null, $expireIn);
|
||||
|
||||
info('The [' . $url . '] site has been secured with a fresh TLS certificate.');
|
||||
info('The ['.$url.'] site has been secured with a fresh TLS certificate.');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -280,7 +280,7 @@ function (ConsoleCommandEvent $event) {
|
||||
* Display all of the currently secured sites.
|
||||
*/
|
||||
$app->command('secured [--expiring] [--days=]', function (OutputInterface $output, $expiring = null, $days = 60) {
|
||||
$now = (new Datetime())->add(new DateInterval('P' . $days . 'D'));
|
||||
$now = (new Datetime())->add(new DateInterval('P'.$days.'D'));
|
||||
$sites = collect(Site::securedWithDates())
|
||||
->when($expiring, fn ($collection) => $collection->filter(fn ($row) => $row['exp'] < $now))
|
||||
->map(function ($row) {
|
||||
|
||||
Reference in New Issue
Block a user