Skip to content

Commit 5bd64a3

Browse files
PSR-12 Coding Standards
1 parent 66c0430 commit 5bd64a3

File tree

18 files changed

+23
-29
lines changed

18 files changed

+23
-29
lines changed

src/Attributes/ExposedAsState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_PARAMETER|Attribute::TARGET_METHOD)]
7+
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_METHOD)]
88
final class ExposedAsState
99
{
1010
public function __construct()

src/Components/Alert.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ class Alert extends BaseComponent
4343
public function __construct(
4444
#[Slotable]
4545
public ?string $icon = null,
46-
4746
#[Slotable]
4847
public ?string $title = null,
49-
5048
#[ExposedAsState]
5149
public ?string $type = 'success',
5250
) {

src/Components/App.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class App extends BaseComponent
77
/**
88
* Create an instance of the component
99
*/
10-
public function __construct() {
10+
public function __construct()
11+
{
1112
// constructor promotion handles the rest
1213
}
1314
}

src/Components/Button.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ class Button extends BaseComponent
1717
public function __construct(
1818
#[ExposedAsState]
1919
public string $color = 'red',
20-
2120
#[ExposedAsState]
2221
public string $size = 'md',
23-
2422
#[ExposedAsState]
2523
public string $shape = 'rounded',
26-
2724
public ?string $href = null,
2825
) {
2926
// constructor promotion handles the rest

src/Components/Concerns/IsModal.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
use AppKit\UI\Facades\UI;
66

7-
trait IsModal {
7+
trait IsModal
8+
{
89
/**
910
* Returns the alpine expression to determine if the modal is open
1011
*

src/Components/FieldGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class FieldGroup extends BaseComponent
4646
* @param string|null $help
4747
* @param string|null $label
4848
* @param string|null $name
49-
* @param boolean $required
49+
* @param bool $required
5050
*/
5151
public function __construct(
5252
public ?string $error = '',

src/Components/FieldRequirement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ class FieldRequirement extends BaseComponent
77
/**
88
* Are optional fields highlighted
99
*
10-
* @var boolean
10+
* @var bool
1111
*/
1212
public bool $highlightOptionalFields;
1313

1414
/**
1515
* Create an instance of the component
1616
*
17-
* @param boolean $required
17+
* @param bool $required
1818
* @param string $requiredText
1919
* @param string $optionalText
2020
*/

src/Components/Form.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class Form extends BaseComponent
77
/**
88
* Create an instance of the component
99
*/
10-
public function __construct() {
10+
public function __construct()
11+
{
1112
// constructor promotion handles the rest
1213
}
1314
}

src/Components/Grid.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ class Grid extends BaseComponent
1616
/**
1717
* Create an instance of the component
1818
*
19-
* @param integer $columns
20-
* @param integer $gap
19+
* @param int $columns
20+
* @param int $gap
2121
*/
2222
public function __construct(
2323
#[ExposedAsState]
2424
public int $columns = 12,
25-
2625
#[ExposedAsState]
2726
public int $gap = 3,
2827
) {

src/Components/Grid/Column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Column extends BaseComponent
99
/**
1010
* Create an instance of the component
1111
*
12-
* @param integer $width
12+
* @param int $width
1313
*/
1414
public function __construct(
1515
public int $width,

0 commit comments

Comments
 (0)