Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
199ocero authored and github-actions[bot] committed Jan 1, 2024
1 parent f141870 commit 2d47e43
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
13 changes: 5 additions & 8 deletions src/Forms/Components/RadioDeck.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
use Closure;
use Filament\Forms\Components\Radio;
use Filament\Support\Concerns\HasAlignment;
use Filament\Support\Concerns\HasIcon;
use Filament\Support\Concerns\HasColor;
use Filament\Support\Concerns\HasIcon;

class RadioDeck extends Radio
{
use HasAlignment;
use HasColor;
use HasIcon;
use HasAlignment;

protected array | Closure | null $icons = null;
protected array|Closure|null $icons = null;

protected string $view = 'radio-deck::forms.components.radio-deck';

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

Expand All @@ -30,7 +30,7 @@ public function icons(array | Closure | null $icons): static
*/
public function hasIcons($value): bool
{
if ($value && !empty($this->getIcons())) {
if ($value && ! empty($this->getIcons())) {
return array_key_exists($value, $this->getIcons());
}

Expand All @@ -45,9 +45,6 @@ public function getIcons(): mixed
return $this->evaluate($this->icons);
}

/**
* @return string | null
*/
public function getIcon($value): ?string
{
return $this->getIcons()[$value] ?? null;
Expand Down
4 changes: 1 addition & 3 deletions src/RadioDeckServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
use Filament\Support\Assets\Asset;
use Filament\Support\Facades\FilamentAsset;
use Filament\Support\Facades\FilamentIcon;
use Illuminate\Filesystem\Filesystem;
use JaOcero\RadioDeck\Testing\TestsRadioDeck;
use Livewire\Features\SupportTesting\Testable;
use Spatie\LaravelPackageTools\Commands\InstallCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use JaOcero\RadioDeck\Commands\RadioDeckCommand;
use JaOcero\RadioDeck\Testing\TestsRadioDeck;

class RadioDeckServiceProvider extends PackageServiceProvider
{
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
use Filament\Tables\TablesServiceProvider;
use Filament\Widgets\WidgetsServiceProvider;
use Illuminate\Database\Eloquent\Factories\Factory;
use JaOcero\RadioDeck\RadioDeckServiceProvider;
use Livewire\LivewireServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
use RyanChandler\BladeCaptureDirective\BladeCaptureDirectiveServiceProvider;
use JaOcero\RadioDeck\RadioDeckServiceProvider;

class TestCase extends Orchestra
{
Expand All @@ -27,7 +27,7 @@ protected function setUp(): void
parent::setUp();

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

Expand Down

0 comments on commit 2d47e43

Please sign in to comment.