Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
archilex authored and github-actions[bot] committed May 30, 2023
1 parent 1d2dd97 commit c0242c1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/Columns/Concerns/HasOverlap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasOverlap
{
protected int|Closure|null $overlap = null;
protected int | Closure | null $overlap = null;

public function overlap(int|Closure|null $overlap): static
public function overlap(int | Closure | null $overlap): static
{
$this->overlap = $overlap;

Expand Down
12 changes: 6 additions & 6 deletions src/Columns/Concerns/HasRemaining.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

trait HasRemaining
{
protected bool|Closure $shouldShowRemaining = false;
protected bool | Closure $shouldShowRemaining = false;

protected bool|Closure $shouldShowRemainingAfterStack = false;
protected bool | Closure $shouldShowRemainingAfterStack = false;

protected string|Closure|null $remainingTextSize = null;
protected string | Closure | null $remainingTextSize = null;

public function showRemaining(bool|Closure $condition = true, bool|Closure $showRemainingAfterStack = false, string|Closure|null $remainingTextSize = null): static
public function showRemaining(bool | Closure $condition = true, bool | Closure $showRemainingAfterStack = false, string | Closure | null $remainingTextSize = null): static
{
$this->shouldShowRemaining = $condition;
$this->showRemainingAfterStack($showRemainingAfterStack);
Expand All @@ -21,7 +21,7 @@ public function showRemaining(bool|Closure $condition = true, bool|Closure $show
return $this;
}

public function showRemainingAfterStack(bool|Closure $condition = true): static
public function showRemainingAfterStack(bool | Closure $condition = true): static
{
$this->shouldShowRemainingAfterStack = $condition;

Expand All @@ -38,7 +38,7 @@ public function shouldShowRemainingAfterStack(): bool
return (bool) $this->evaluate($this->shouldShowRemainingAfterStack);
}

public function remainingTextSize(string|Closure|null $remainingTextSize): static
public function remainingTextSize(string | Closure | null $remainingTextSize): static
{
$this->remainingTextSize = $remainingTextSize;

Expand Down
4 changes: 2 additions & 2 deletions src/Columns/Concerns/HasRing.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasRing
{
protected int|Closure|null $ring = null;
protected int | Closure | null $ring = null;

public function ring(string|Closure|null $ring): static
public function ring(string | Closure | null $ring): static
{
$this->ring = $ring;

Expand Down
20 changes: 10 additions & 10 deletions src/Columns/StackedImageColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class StackedImageColumn extends ImageColumn

protected string $view = 'filament-stacked-image-column::columns.stacked-image-column';

protected string|Closure|null $disk = null;
protected string | Closure | null $disk = null;

protected string|Closure $visibility = 'public';
protected string | Closure $visibility = 'public';

protected string|Closure|null $separator = null;
protected string | Closure | null $separator = null;

protected int|Closure|null $limit = null;
protected int | Closure | null $limit = null;

protected array $extraImgAttributes = [];

Expand All @@ -39,7 +39,7 @@ protected function setUp(): void
$this->disk(config('tables.default_filesystem_disk'));
}

public function disk(string|Closure|null $disk): static
public function disk(string | Closure | null $disk): static
{
$this->disk = $disk;

Expand Down Expand Up @@ -85,7 +85,7 @@ public function getImagesWithPath(): array
->toArray();
}

public function separator(string|Closure|null $separator = ','): static
public function separator(string | Closure | null $separator = ','): static
{
$this->separator = $separator;

Expand All @@ -97,7 +97,7 @@ public function getSeparator(): ?string
return $this->evaluate($this->separator);
}

public function getPath(string|null $image = null): ?string
public function getPath(string | null $image = null): ?string
{
$state = $image ?? $this->getState();

Expand Down Expand Up @@ -134,7 +134,7 @@ public function getPath(string|null $image = null): ?string
return $storage->url($state);
}

public function visibility(string|Closure $visibility): static
public function visibility(string | Closure $visibility): static
{
$this->visibility = $visibility;

Expand All @@ -146,7 +146,7 @@ public function getVisibility(): string
return $this->evaluate($this->visibility);
}

public function extraImgAttributes(array|Closure $attributes, bool $merge = false): static
public function extraImgAttributes(array | Closure $attributes, bool $merge = false): static
{
if ($merge) {
$this->extraImgAttributes[] = $attributes;
Expand All @@ -173,7 +173,7 @@ public function getExtraImgAttributeBag(): ComponentAttributeBag
return new ComponentAttributeBag($this->getExtraImgAttributes());
}

public function limit(int|Closure|null $limit = 3): static
public function limit(int | Closure | null $limit = 3): static
{
$this->limit = $limit;

Expand Down
2 changes: 1 addition & 1 deletion src/StackedImageColumnServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class StackedImageColumnServiceProvider extends PluginServiceProvider
public static string $name = 'filament-stacked-image-column';

protected array $styles = [
'plugin-filament-stacked-image-column' => __DIR__.'/../resources/dist/filament-stacked-image-column.css',
'plugin-filament-stacked-image-column' => __DIR__ . '/../resources/dist/filament-stacked-image-column.css',
];

public function configurePackage(Package $package): void
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected function setUp(): void
parent::setUp();

Factory::guessFactoryNamesUsing(
fn (string $modelName) => 'Archilex\\StackedImageColumn\\Database\\Factories\\'.class_basename($modelName).'Factory'
fn (string $modelName) => 'Archilex\\StackedImageColumn\\Database\\Factories\\' . class_basename($modelName) . 'Factory'
);
}

Expand Down

0 comments on commit c0242c1

Please sign in to comment.