mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -4,11 +4,15 @@
|
||||
|
||||
use App\Actions\StorageProvider\EditStorageProvider;
|
||||
use App\Models\StorageProvider;
|
||||
use App\Models\User;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
|
||||
class Edit
|
||||
{
|
||||
/**
|
||||
* @return array<int, mixed>
|
||||
*/
|
||||
public static function form(): array
|
||||
{
|
||||
return [
|
||||
@ -20,8 +24,14 @@ public static function form(): array
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $data
|
||||
*/
|
||||
public static function action(StorageProvider $provider, array $data): void
|
||||
{
|
||||
app(EditStorageProvider::class)->edit($provider, auth()->user()->currentProject, $data);
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
app(EditStorageProvider::class)->edit($provider, $user->currentProject, $data);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user