Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored and github-actions[bot] committed Jul 7, 2024
1 parent 6a14e77 commit 9a1a33f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
16 changes: 5 additions & 11 deletions src/Support/Html/Mixins/BaseElementMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class BaseElementMixin
{
public function wireKey(): mixed
{
return function (?string $value = null): BaseElement
{
return function (?string $value = null): BaseElement {
/** @var BaseElement $this */

return $this->attribute('wire:key', $value);
Expand All @@ -19,8 +18,7 @@ public function wireKey(): mixed

public function wireIgnore(): mixed
{
return function (?bool $self = false): BaseElement
{
return function (?bool $self = false): BaseElement {
/** @var BaseElement $this */

return $self
Expand All @@ -31,8 +29,7 @@ public function wireIgnore(): mixed

public function wireNavigate(): mixed
{
return function (): BaseElement
{
return function (): BaseElement {
/** @var BaseElement $this */

return $this->attribute('wire:navigate');
Expand All @@ -41,8 +38,7 @@ public function wireNavigate(): mixed

public function wireSubmit(): mixed
{
return function (?string $action = null): BaseElement
{
return function (?string $action = null): BaseElement {
/** @var BaseElement $this */

return $this->attribute('wire:submit', $action);
Expand All @@ -51,10 +47,8 @@ public function wireSubmit(): mixed

public function wireModel(): mixed
{
return function (string $key, ?string $modifiers = null): BaseElement
{
return function (string $key, ?string $modifiers = null): BaseElement {
/** @var BaseElement $this */

$directive = str('wire:model')
->when($modifiers, fn (Stringable $str) => $str->append(".{$modifiers}"))
->squish();
Expand Down
6 changes: 2 additions & 4 deletions src/Support/Html/Mixins/HtmlExtendedMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class HtmlExtendedMixin

public function wireForm(): mixed
{
return function (?Form $value = null): static
{
return function (?Form $value = null): static {
$this->form = $value;

return $this;
Expand All @@ -21,8 +20,7 @@ public function wireForm(): mixed

public function icon(): mixed
{
return function (string $name, ?string $class = null, ?array $attributes = []): Div
{
return function (string $name, ?string $class = null, ?array $attributes = []): Div {
/** @var Div $this */

return $this->div(svg($name, $class, $attributes));
Expand Down

0 comments on commit 9a1a33f

Please sign in to comment.