Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rupadana authored and github-actions[bot] committed Jan 26, 2024
1 parent 4a86185 commit 27be183
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/Infolists/Components/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

namespace Rupadana\FilamentSwiper\Infolists\Components;


use Closure;
use Filament\Infolists\Components\Component;
use Filament\Infolists\Components\Concerns\CanBeCollapsed;
use Filament\Infolists\Components\Concerns\CanBeCompacted;
use Filament\Infolists\Components\Concerns\EntanglesStateWithSingularRelationship;
use Filament\Infolists\Components\Concerns\HasHeaderActions;
use Filament\Support\Concerns\HasDescription;
use Filament\Support\Concerns\HasExtraAlpineAttributes;
use Filament\Support\Concerns\HasHeading;
Expand Down
2 changes: 1 addition & 1 deletion src/Infolists/Components/Swiper.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function centeredSlides(bool $centeredSlides = true): Swiper

public function getChildComponentContainers(bool $withHidden = false): array
{
if (!$this->hasChildComponentContainer($withHidden)) {
if (! $this->hasChildComponentContainer($withHidden)) {
return [];
}

Expand Down
6 changes: 3 additions & 3 deletions src/Infolists/Components/SwiperImageEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getConversion(): ?string
return $this->evaluate($this->conversion);
}

public function getImageUrl(string $state = null): ?string
public function getImageUrl(?string $state = null): ?string
{

if ($this->getSpatie() == false) {
Expand All @@ -150,7 +150,7 @@ public function getImageUrl(string $state = null): ?string

$record = $this->getRecord();

if (!$record) {
if (! $record) {
return null;
}

Expand All @@ -163,7 +163,7 @@ public function getImageUrl(string $state = null): ?string
/** @var ?Media $media */
$media = $record->media->first(fn (Media $media): bool => $media->uuid === $state);

if (!$media) {
if (! $media) {
return null;
}

Expand Down

0 comments on commit 27be183

Please sign in to comment.