Skip to content

Commit 8ec7486

Browse files
committed
Git bot
2 parents d7a1f85 + 922182d commit 8ec7486

File tree

5 files changed

+10
-22
lines changed

5 files changed

+10
-22
lines changed

src/View/Components/Button.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ class Button extends Component
1111
public readonly ButtonVariant $resolvedVariant;
1212

1313
public function __construct(
14-
public readonly string $type = 'submit',
14+
public readonly string $type = 'submit',
1515
public string|ButtonVariant $variant = 'fresh',
16-
public readonly string $color = 'primary',
17-
public readonly string $size = 'md',
18-
public readonly bool $loading = false,
19-
)
20-
{
16+
public readonly string $color = 'primary',
17+
public readonly string $size = 'md',
18+
public readonly bool $loading = false,
19+
) {
2120
$this->resolvedVariant = $variant instanceof ButtonVariant
2221
? $variant
2322
: ButtonVariant::from(strtolower($variant));

src/View/Components/FormError.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ class FormError extends Component
99
{
1010
public function __construct(
1111
public ?string $for
12-
)
13-
{
14-
}
15-
12+
) {}
1613

1714
public function classes(): string
1815
{

src/View/Components/FormInput.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@
77

88
class FormInput extends Component
99
{
10-
1110
public function __construct(
1211
public ?string $name,
13-
)
14-
{
15-
16-
}
12+
) {}
1713

1814
public function classes(): string
1915
{
20-
return "block w-full rounded-md border-gray-300 dark:border-gray-500 text-gray-700 shadow-sm focus:border-gray-600 focus:ring-gray-300 focus:ring-2 ring-offset-3 sm:text-sm";
16+
return 'block w-full rounded-md border-gray-300 dark:border-gray-500 text-gray-700 shadow-sm focus:border-gray-600 focus:ring-gray-300 focus:ring-2 ring-offset-3 sm:text-sm';
2117
}
2218

2319
public function render(): View

src/View/Components/FormLabel.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
class FormLabel extends Component
99
{
10-
11-
1210
public function classes(): string
1311
{
1412
return 'block text-sm font-medium text-gray-700 dark:text-gray-300 ';

src/View/Components/FormTextarea.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
class FormTextarea extends Component
88
{
99
public function __construct(
10-
public bool $autoGrow = false,
10+
public bool $autoGrow,
1111
public ?string $name,
12-
)
13-
{
14-
}
12+
) {}
1513

1614
public function classes(): string
1715
{

0 commit comments

Comments
 (0)