Skip to content

Commit

Permalink
After Composer CS
Browse files Browse the repository at this point in the history
  • Loading branch information
achyutkneupane committed Dec 31, 2024
1 parent 195366e commit c7388e5
Show file tree
Hide file tree
Showing 77 changed files with 213 additions and 79 deletions.
8 changes: 6 additions & 2 deletions packages/actions/src/Concerns/InteractsWithActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ public function callMountedAction(array $arguments = []): mixed
return $result;
}

protected function afterActionCalled(): void {}
protected function afterActionCalled(): void
{
}

/**
* @param array<string, mixed> $arguments
Expand Down Expand Up @@ -250,7 +252,9 @@ protected function mergeCachedActions(array $actions): void
];
}

protected function configureAction(Action $action): void {}
protected function configureAction(Action $action): void
{
}

public function getMountedAction(): ?Action
{
Expand Down
3 changes: 2 additions & 1 deletion packages/actions/src/Events/ActionCalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class ActionCalled

public function __construct(
protected MountableAction $action,
) {}
) {
}

public function getAction(): MountableAction
{
Expand Down
3 changes: 2 additions & 1 deletion packages/actions/src/Events/ActionCalling.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class ActionCalling

public function __construct(
protected MountableAction $action,
) {}
) {
}

public function getAction(): MountableAction
{
Expand Down
4 changes: 3 additions & 1 deletion packages/actions/src/Exceptions/Hold.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
/**
* @deprecated Throw `Halt` instead.
*/
class Hold extends Halt {}
class Hold extends Halt
{
}
3 changes: 2 additions & 1 deletion packages/actions/src/Exports/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public function __construct(
protected Export $export,
protected array $columnMap,
protected array $options,
) {}
) {
}

/**
* @return array<mixed>
Expand Down
3 changes: 2 additions & 1 deletion packages/actions/src/Imports/Events/ImportChunkProcessed.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function __construct(
protected int $processedRows,
protected int $successfulRows,
protected array $exceptions,
) {}
) {
}

public function getImport(): Import
{
Expand Down
3 changes: 2 additions & 1 deletion packages/actions/src/Imports/Events/ImportCompleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public function __construct(
protected Import $import,
protected array $columnMap,
protected array $options,
) {}
) {
}

public function getImport(): Import
{
Expand Down
3 changes: 2 additions & 1 deletion packages/actions/src/Imports/Events/ImportStarted.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public function __construct(
protected Import $import,
protected array $columnMap,
protected array $options,
) {}
) {
}

public function getImport(): Import
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

use Exception;

class RowImportFailedException extends Exception {}
class RowImportFailedException extends Exception
{
}
3 changes: 2 additions & 1 deletion packages/actions/src/Imports/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function __construct(
protected Import $import,
protected array $columnMap,
protected array $options,
) {}
) {
}

/**
* @param array<string, mixed> $data
Expand Down
4 changes: 3 additions & 1 deletion packages/actions/src/Modal/Actions/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
/**
* @deprecated Use `\Filament\Actions\StaticAction` instead.
*/
class Action extends StaticAction {}
class Action extends StaticAction
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Components/BelongsToManyCheckboxList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `CheckboxList` with the `relationship()` method instead.
*/
class BelongsToManyCheckboxList extends CheckboxList {}
class BelongsToManyCheckboxList extends CheckboxList
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Components/BelongsToManyMultiSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `MultiSelect` with the `relationship()` method instead.
*/
class BelongsToManyMultiSelect extends MultiSelect {}
class BelongsToManyMultiSelect extends MultiSelect
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Components/BelongsToSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `Select` with the `relationship()` method instead.
*/
class BelongsToSelect extends Select {}
class BelongsToSelect extends Select
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Components/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `Section` with an empty heading instead.
*/
class Card extends Section {}
class Card extends Section
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Components/HasManyRepeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `Repeater` with the `relationship()` method instead.
*/
class HasManyRepeater extends RelationshipRepeater {}
class HasManyRepeater extends RelationshipRepeater
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Components/MorphManyRepeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `Repeater` with the `relationship()` method instead.
*/
class MorphManyRepeater extends RelationshipRepeater {}
class MorphManyRepeater extends RelationshipRepeater
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Components/ViewField.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Filament\Forms\Components;

class ViewField extends Field {}
class ViewField extends Field
{
}
4 changes: 3 additions & 1 deletion packages/forms/src/Concerns/InteractsWithForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ public function validateOnly($field, $rules = null, $messages = [], $attributes
}
}

protected function onValidationError(ValidationException $exception): void {}
protected function onValidationError(ValidationException $exception): void
{
}

/**
* @param array<string, mixed> $attributes
Expand Down
4 changes: 3 additions & 1 deletion packages/forms/src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Filament\Forms;

class Form extends ComponentContainer {}
class Form extends ComponentContainer
{
}
3 changes: 2 additions & 1 deletion packages/forms/src/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class Get
{
public function __construct(
protected Component $component,
) {}
) {
}

public function __invoke(string | Component $path = '', bool $isAbsolute = false): mixed
{
Expand Down
3 changes: 2 additions & 1 deletion packages/forms/src/Set.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class Set
{
public function __construct(
protected Component $component,
) {}
) {
}

public function __invoke(string | Component $path, mixed $state, bool $isAbsolute = false): mixed
{
Expand Down
4 changes: 3 additions & 1 deletion packages/infolists/src/Components/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `Section` with an empty heading instead.
*/
class Card extends Section {}
class Card extends Section
{
}
4 changes: 3 additions & 1 deletion packages/infolists/src/Components/ViewEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Filament\Infolists\Components;

class ViewEntry extends Entry {}
class ViewEntry extends Entry
{
}
3 changes: 2 additions & 1 deletion packages/notifications/src/BroadcastNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class BroadcastNotification extends BaseNotification implements ShouldQueue
*/
public function __construct(
public array $data,
) {}
) {
}

/**
* @param Model $notifiable
Expand Down
3 changes: 2 additions & 1 deletion packages/notifications/src/DatabaseNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class DatabaseNotification extends BaseNotification implements Arrayable, Should
*/
public function __construct(
public array $data,
) {}
) {
}

/**
* @param Model $notifiable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class DatabaseNotificationsSent implements ShouldBroadcast

public function __construct(
protected Model | Authenticatable $user,
) {}
) {
}

public function broadcastOn(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class DatabaseNotifications extends Component
public static ?string $authGuard = null;

#[On('databaseNotificationsSent')]
public function refresh(): void {}
public function refresh(): void
{
}

#[On('notificationClosed')]
public function removeNotification(string $id): void
Expand Down
3 changes: 2 additions & 1 deletion packages/panels/src/Events/Auth/Registered.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class Registered

public function __construct(
protected Authenticatable $user,
) {}
) {
}

public function getUser(): Authenticatable
{
Expand Down
3 changes: 2 additions & 1 deletion packages/panels/src/Events/TenantSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class TenantSet
public function __construct(
protected Model $tenant,
protected Model | Authenticatable | HasTenants $user,
) {}
) {
}

public function getTenant(): Model
{
Expand Down
3 changes: 2 additions & 1 deletion packages/panels/src/GlobalSearch/GlobalSearchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ public function __construct(
readonly public string $url,
readonly public array $details = [],
readonly public array $actions = [],
) {}
) {
}
}
4 changes: 3 additions & 1 deletion packages/panels/src/Http/Livewire/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Extend `\Filament\Pages\Auth\Login` instead.
*/
class Login extends \Filament\Pages\Auth\Login {}
class Login extends \Filament\Pages\Auth\Login
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

use Illuminate\Contracts\Support\Responsable;

interface EmailVerificationResponse extends Responsable {}
interface EmailVerificationResponse extends Responsable
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

use Illuminate\Contracts\Support\Responsable;

interface LoginResponse extends Responsable {}
interface LoginResponse extends Responsable
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

use Illuminate\Contracts\Support\Responsable;

interface LogoutResponse extends Responsable {}
interface LogoutResponse extends Responsable
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

use Illuminate\Contracts\Support\Responsable;

interface PasswordResetResponse extends Responsable {}
interface PasswordResetResponse extends Responsable
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

use Illuminate\Contracts\Support\Responsable;

interface RegistrationResponse extends Responsable {}
interface RegistrationResponse extends Responsable
{
}
4 changes: 3 additions & 1 deletion packages/panels/src/Navigation/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class MenuItem extends Component

protected bool | Closure $isVisible = true;

final public function __construct() {}
final public function __construct()
{
}

public static function make(): static
{
Expand Down
4 changes: 3 additions & 1 deletion packages/panels/src/Navigation/UserMenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/**
* @deprecated Use `MenuItem` instead.
*/
class UserMenuItem extends MenuItem {}
class UserMenuItem extends MenuItem
{
}
4 changes: 3 additions & 1 deletion packages/panels/src/Pages/Actions/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
/**
* @deprecated Use `\Filament\Actions\Action` instead.
*/
class Action extends BaseAction {}
class Action extends BaseAction
{
}
4 changes: 3 additions & 1 deletion packages/panels/src/Pages/Actions/ActionGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
/**
* @deprecated Use `\Filament\Actions\ActionGroup` instead.
*/
class ActionGroup extends BaseActionGroup {}
class ActionGroup extends BaseActionGroup
{
}
4 changes: 3 additions & 1 deletion packages/panels/src/Pages/Actions/ButtonAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
/**
* @deprecated Use `\Filament\Actions\Action` instead.
*/
class ButtonAction extends BaseAction {}
class ButtonAction extends BaseAction
{
}
4 changes: 3 additions & 1 deletion packages/panels/src/Pages/Actions/CreateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
/**
* @deprecated Use `\Filament\Actions\CreateAction` instead.
*/
class CreateAction extends BaseAction {}
class CreateAction extends BaseAction
{
}
Loading

0 comments on commit c7388e5

Please sign in to comment.