format muhahaha

This commit is contained in:
Andras Bacsai committed 2023-08-11 20:48:52 +02:00
1 parent c762195c8a
commit 82a01b4483
109 files changed
+295 -244

No files matched your search

+5 -5
View File
@@ -41,7 +41,7 @@ class Application extends BaseModel
public function publishDirectory(): Attribute
{
return Attribute::make(
set: fn($value) => $value ? '/' . ltrim($value, '/') : null,
set: fn ($value) => $value ? '/' . ltrim($value, '/') : null,
);
}
@@ -71,14 +71,14 @@ class Application extends BaseModel
public function baseDirectory(): Attribute
{
return Attribute::make(
set: fn($value) => '/' . ltrim($value, '/'),
set: fn ($value) => '/' . ltrim($value, '/'),
);
}
public function portsMappings(): Attribute
{
return Attribute::make(
set: fn($value) => $value === "" ? null : $value,
set: fn ($value) => $value === "" ? null : $value,
);
}
@@ -87,7 +87,7 @@ class Application extends BaseModel
public function portsMappingsArray(): Attribute
{
return Attribute::make(
get: fn() => is_null($this->ports_mappings)
get: fn () => is_null($this->ports_mappings)
? []
: explode(',', $this->ports_mappings),
@@ -97,7 +97,7 @@ class Application extends BaseModel
public function portsExposesArray(): Attribute
{
return Attribute::make(
get: fn() => is_null($this->ports_exposes)
get: fn () => is_null($this->ports_exposes)
? []
: explode(',', $this->ports_exposes)
);
+1 -1
View File
@@ -45,7 +45,7 @@ class Environment extends Model
protected function name(): Attribute
{
return Attribute::make(
set: fn(string $value) => strtolower($value),
set: fn (string $value) => strtolower($value),
);
}
}
+3 -3
View File
@@ -34,8 +34,8 @@ class EnvironmentVariable extends Model
protected function value(): Attribute
{
return Attribute::make(
get: fn(string $value) => $this->get_environment_variables($value),
set: fn(string $value) => $this->set_environment_variables($value),
get: fn (string $value) => $this->get_environment_variables($value),
set: fn (string $value) => $this->set_environment_variables($value),
);
}
@@ -67,7 +67,7 @@ class EnvironmentVariable extends Model
protected function key(): Attribute
{
return Attribute::make(
set: fn(string $value) => Str::of($value)->trim(),
set: fn (string $value) => Str::of($value)->trim(),
);
}
}
+2 -2
View File
@@ -23,14 +23,14 @@ class LocalPersistentVolume extends Model
protected function name(): Attribute
{
return Attribute::make(
set: fn(string $value) => Str::of($value)->trim()->value,
set: fn (string $value) => Str::of($value)->trim()->value,
);
}
protected function mountPath(): Attribute
{
return Attribute::make(
set: fn(string $value) => Str::of($value)->trim()->start('/')->value
set: fn (string $value) => Str::of($value)->trim()->start('/')->value
);
}
+2 -2
View File
@@ -33,7 +33,7 @@ class StandalonePostgresql extends BaseModel
public function portsMappings(): Attribute
{
return Attribute::make(
set: fn($value) => $value === "" ? null : $value,
set: fn ($value) => $value === "" ? null : $value,
);
}
@@ -42,7 +42,7 @@ class StandalonePostgresql extends BaseModel
public function portsMappingsArray(): Attribute
{
return Attribute::make(
get: fn() => is_null($this->ports_mappings)
get: fn () => is_null($this->ports_mappings)
? []
: explode(',', $this->ports_mappings),