Skip to content

Commit 891b718

Browse files
committed
cs fix
1 parent 7e21871 commit 891b718

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

app/Console/Commands/QueueHealthChecks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function (Collection $chunk) {
4848
$this->totalPushed += $chunk->count();
4949

5050
// Push each site check to queue
51-
$chunk->each(fn ($site) => CheckSiteHealth::dispatch($site)->onQueue('cron'));
51+
$chunk->each(fn ($site) => CheckSiteHealth::dispatch($site));
5252
}
5353
);
5454

app/Jobs/CheckSiteHealth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(protected readonly Site $site)
3131
*/
3232
public function uniqueId(): string
3333
{
34-
return $this->site->id;
34+
return (string) $this->site->id;
3535
}
3636

3737
/**

app/Jobs/UpdateSite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(protected readonly Site $site, protected string $tar
3333
*/
3434
public function uniqueId(): string
3535
{
36-
return $this->site->id;
36+
return (string) $this->site->id;
3737
}
3838

3939
/**
@@ -146,7 +146,7 @@ public function handle(): void
146146
$connection->notificationSuccess(["fromVersion" => $healthResult->cms_version]);
147147

148148
// Trigger site health check to write the update version back to the db
149-
CheckSiteHealth::dispatch($this->site);
149+
CheckSiteHealth::dispatch($this->site)
150150
}
151151

152152
protected function performExtraction(PrepareUpdate $prepareResult): void

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function boot(): void
3030
$siteHost = parse_url($request->input('url'), PHP_URL_HOST);
3131
}
3232

33-
if ($siteHost !== 'default' && $dnsResult = dns_get_record($siteHost, DNS_A)) {
33+
if ($siteHost !== 'default' && $dnsResult = dns_get_record((string) $siteHost, DNS_A)) {
3434
$siteIp = $dnsResult[0]['ip'];
3535
}
3636

app/Providers/HttpclientServiceProvider.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
namespace App\Providers;
44

55
use GuzzleHttp\Client;
6-
use GuzzleHttp\Exception\ConnectException;
7-
use GuzzleHttp\Handler\CurlHandler;
8-
use GuzzleHttp\HandlerStack;
9-
use GuzzleHttp\Middleware;
10-
use GuzzleHttp\Psr7\Request;
11-
use GuzzleHttp\Psr7\Response;
126
use Illuminate\Support\ServiceProvider;
137

148
class HttpclientServiceProvider extends ServiceProvider

config/horizon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@
180180
*/
181181

182182
'defaults' => [
183-
'supervisor-cron' => [
183+
'supervisor-default' => [
184184
'connection' => 'redis',
185-
'queue' => ['default', 'cron'],
185+
'queue' => ['default'],
186186
'balance' => 'auto',
187187
'autoScalingStrategy' => 'time',
188188
'maxProcesses' => 1,

0 commit comments

Comments
 (0)