Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Aug 3, 2023
1 parent 2d1e26e commit bae4d7d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/CaddyfilePatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function replacePort(int $newPort): self
/**
* Replaces the TLS snippet for the site with a new one.
*/
public function replaceTlsSnippet(TlsSetting $newTlsSetting, ?Certificate $certificate = null): self
public function replaceTlsSnippet(TlsSetting $newTlsSetting, Certificate $certificate = null): self
{
$lines = explode(PHP_EOL, $this->caddyfile);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function team(): Team
/**
* Log an activity.
*/
public function logActivity(string $description, ?Model $subject = null): ActivityLog
public function logActivity(string $description, Model $subject = null): ActivityLog
{
return ActivityLog::create([
'team_id' => $this->team()->id,
Expand Down
4 changes: 2 additions & 2 deletions app/Infrastructure/Entities/ServerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public function __construct(
public readonly int $cpuCores,
public readonly int $memoryInMb,
public readonly int $storageInGb,
public readonly null|int $monthlyPriceAmount = null,
public readonly null|string $monthlyPriceCurrency = null,
public readonly ?int $monthlyPriceAmount = null,
public readonly ?string $monthlyPriceCurrency = null,
) {

$memoryInGb = $this->memoryInMb / 1024;
Expand Down
2 changes: 1 addition & 1 deletion app/Models/ServerTaskDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private function dispatchAndKeepTrack(): TaskModel
/**
* Dispatches the pending task.
*/
private function dispatchPendingTask(): ProcessOutput|null
private function dispatchPendingTask(): ?ProcessOutput
{
try {
$processOutput = $this->pendingTask->dispatch();
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function deploy(array $environmentVariables = [], User $user = null): Dep
/**
* Updates the site's Caddyfile with the given PHP version and web folder.
*/
public function updateCaddyfile(PhpVersion $phpVersion, string $webFolder, ?User $user = null): void
public function updateCaddyfile(PhpVersion $phpVersion, string $webFolder, User $user = null): void
{
$this->pending_caddyfile_update_since = now();
$this->save();
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function subscriptionOptions(): TeamSubscriptionOptions
/**
* Get the email address that should be associated with the Paddle customer.
*/
public function paddleEmail(): string|null
public function paddleEmail(): ?string
{
/** @var User */
$owner = $this->owner;
Expand Down
2 changes: 1 addition & 1 deletion app/Tasks/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function onOutputUpdated(string $output): void
{
}

public function callbackUrl(): string|null
public function callbackUrl(): ?string
{
return $this instanceof HasCallbacks ? $this->taskModel?->callbackUrl() : null;
}
Expand Down

0 comments on commit bae4d7d

Please sign in to comment.