@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | return $response->withHeaders([ |
| 14 | 14 | config('varnish.cacheable_header_name') => '1', |
| 15 | - 'Cache-Control' => 'public, max-age='. 60 * ($cacheTimeInMinutes ?? config('varnish.cache_time_in_minutes')), |
|
| 15 | + 'Cache-Control' => 'public, max-age='.60 * ($cacheTimeInMinutes ?? config('varnish.cache_time_in_minutes')), |
|
| 16 | 16 | ]); |
| 17 | 17 | } |
| 18 | 18 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | { |
| 32 | 32 | $host = $host ?? config('varnish.host'); |
| 33 | 33 | |
| 34 | - if (! is_array($host)) { |
|
| 34 | + if (!is_array($host)) { |
|
| 35 | 35 | $host = [$host]; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | public function generateBanCommand(array $hosts, string $url = null): string |
| 47 | 47 | { |
| 48 | 48 | $hostsRegex = collect($hosts) |
| 49 | - ->map(function (string $host) { |
|
| 49 | + ->map(function(string $host) { |
|
| 50 | 50 | return "(^{$host}$)"; |
| 51 | 51 | }) |
| 52 | 52 | ->implode('|'); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $config = config('varnish'); |
| 55 | 55 | |
| 56 | 56 | $urlRegex = ''; |
| 57 | - if (! empty($url)) { |
|
| 57 | + if (!empty($url)) { |
|
| 58 | 58 | $urlRegex = " && req.url ~ {$url}"; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | $process->run(); |
| 69 | 69 | |
| 70 | - if (! $process->isSuccessful()) { |
|
| 70 | + if (!$process->isSuccessful()) { |
|
| 71 | 71 | throw new ProcessFailedException($process); |
| 72 | 72 | } |
| 73 | 73 | |