Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagof authored and github-actions[bot] committed Sep 12, 2024
1 parent 2f4ffae commit 5f97966
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/Contracts/IsFilamentElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ public static function getFilamentSchema(): ?array;

/**
* @param array<string, mixed> $data
* @return static
*/
public static function fromFilamentFormData(array $data): static;

/**
* @return array<string, mixed>
* @return array<string, mixed>
*/
public function toFilamentFormData(): array;

Expand Down
1 change: 0 additions & 1 deletion src/Filament/Resources/RuleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Squarebit\FilamentVolition\Facades\FilamentVolition;
use Squarebit\FilamentVolition\Filament\Resources\RuleResource\Pages;
use Squarebit\FilamentVolition\Filament\Resources\RuleResource\RelationManagers;
use Squarebit\Volition\Models\Queries\RuleQuery;
use Squarebit\Volition\Models\Rule;

class RuleResource extends Resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Squarebit\FilamentVolition\Filament\Resources\RuleResource\RelationManagers;

use Filament\Forms\Components\Builder\Block;
use Illuminate\Database\Eloquent\Model;
use Squarebit\FilamentVolition\Facades\FilamentVolition;
use Squarebit\Volition\Models\Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Squarebit\FilamentVolition\Filament\Resources\RuleResource\RelationManagers;

use Filament\Forms\Components\Builder\Block;
use Illuminate\Database\Eloquent\Model;
use Squarebit\FilamentVolition\Facades\FilamentVolition;
use Squarebit\Volition\Models\Rule;
Expand All @@ -15,6 +14,7 @@ protected function getBlocks(): array
{
return FilamentVolition::getFilamentBlocksForConditions();
}

/**
* @param Rule $ownerRecord
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
use Filament\Tables;
use Filament\Tables\Table;
use Squarebit\FilamentVolition\Contracts\IsFilamentElement;
use Squarebit\FilamentVolition\Facades\FilamentVolition;
use Squarebit\FilamentVolition\Filament\Actions\CreateElementAction;
use Squarebit\FilamentVolition\Filament\Actions\EditElementAction;
use Squarebit\Volition\Models\Action;
use Squarebit\Volition\Models\Element;

abstract class ElementsRelationManager extends RelationManager
Expand Down
2 changes: 0 additions & 2 deletions src/FilamentVolition.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use Filament\Forms\Components\Builder\Block;
use Illuminate\Support\Arr;
use ReflectionClass;
use Squarebit\FilamentVolition\Contracts\IsFilamentAction;
use Squarebit\FilamentVolition\Contracts\IsFilamentCondition;
use Squarebit\FilamentVolition\Contracts\IsFilamentElement;
use Squarebit\Volition\Contracts\Volitional;
use Squarebit\Volition\Facades\Volition;
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/RuleElementsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use Illuminate\Support\Facades\Auth;
use Orchestra\Testbench\Factories\UserFactory;
use Squarebit\FilamentVolition\Facades\FilamentVolition;
use Squarebit\FilamentVolition\Filament\Actions\CreateElementAction;
use Squarebit\FilamentVolition\Filament\Actions\EditElementAction;
use Squarebit\FilamentVolition\Filament\Resources\RuleResource\Pages\EditRule;
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function setUp(): void

$this->actingAs(UserFactory::new()->create(['email' => 'test@user.com']));

foreach(glob(__DIR__.'/../vendor/square-bit/laravel-volition/database/migrations/*.*') as $migrationFile) {
foreach (glob(__DIR__.'/../vendor/square-bit/laravel-volition/database/migrations/*.*') as $migrationFile) {
$migration = include $migrationFile;
$migration->up();
}
Expand Down

0 comments on commit 5f97966

Please sign in to comment.