diff --git a/.gitattributes b/.gitattributes index 23f3149..1332c19 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,5 @@ +* text=auto eol=lf + /.github export-ignore /art export-ignore /tests export-ignore diff --git a/src/Attributes/Cast.php b/src/Attributes/Cast.php index ae33a91..647c390 100644 --- a/src/Attributes/Cast.php +++ b/src/Attributes/Cast.php @@ -9,7 +9,5 @@ use Attribute; #[Attribute(Attribute::TARGET_PROPERTY)] final class Cast { - public function __construct(public string $type) - { - } + public function __construct(public string $type) {} } diff --git a/src/Attributes/Column.php b/src/Attributes/Column.php index 03bc0c0..4b5f6ab 100644 --- a/src/Attributes/Column.php +++ b/src/Attributes/Column.php @@ -12,6 +12,5 @@ final class Column public function __construct( public ?string $name = null, public mixed $default = null, - ) { - } + ) {} } diff --git a/src/Attributes/Config.php b/src/Attributes/Config.php index 881594b..7832e95 100644 --- a/src/Attributes/Config.php +++ b/src/Attributes/Config.php @@ -25,6 +25,5 @@ final class Config * @var array */ public array $messages = [], - ) { - } + ) {} } diff --git a/src/Attributes/CreateRules.php b/src/Attributes/CreateRules.php index f48975d..f37036f 100644 --- a/src/Attributes/CreateRules.php +++ b/src/Attributes/CreateRules.php @@ -18,6 +18,5 @@ final class CreateRules * @var array */ public array $messages = [], - ) { - } + ) {} } diff --git a/src/Attributes/DB.php b/src/Attributes/DB.php index 1746f79..5b8d8ec 100644 --- a/src/Attributes/DB.php +++ b/src/Attributes/DB.php @@ -13,6 +13,5 @@ final class DB public ?string $connection = null, public ?string $table = null, public bool $timestamps = true, - ) { - } + ) {} } diff --git a/src/Attributes/Events/Dispatches.php b/src/Attributes/Events/Dispatches.php index ca9e834..3468f5b 100644 --- a/src/Attributes/Events/Dispatches.php +++ b/src/Attributes/Events/Dispatches.php @@ -12,6 +12,5 @@ final class Dispatches public function __construct( public string $eventClass, public string $event = '' - ) { - } + ) {} } diff --git a/src/Attributes/Events/Listener.php b/src/Attributes/Events/Listener.php index fb87fd3..0c9714f 100644 --- a/src/Attributes/Events/Listener.php +++ b/src/Attributes/Events/Listener.php @@ -12,6 +12,5 @@ final class Listener public function __construct( public string $event = '', public bool $queue = false - ) { - } + ) {} } diff --git a/src/Attributes/Events/Observer.php b/src/Attributes/Events/Observer.php index 89324eb..87425f3 100644 --- a/src/Attributes/Events/Observer.php +++ b/src/Attributes/Events/Observer.php @@ -11,6 +11,5 @@ final class Observer { public function __construct( public string $observer - ) { - } + ) {} } diff --git a/src/Attributes/Fillable.php b/src/Attributes/Fillable.php index 00c03c1..c70f181 100644 --- a/src/Attributes/Fillable.php +++ b/src/Attributes/Fillable.php @@ -7,6 +7,4 @@ namespace WendellAdriel\Lift\Attributes; use Attribute; #[Attribute(Attribute::TARGET_PROPERTY)] -final class Fillable -{ -} +final class Fillable {} diff --git a/src/Attributes/Hidden.php b/src/Attributes/Hidden.php index 8b894bd..9c5c7fa 100644 --- a/src/Attributes/Hidden.php +++ b/src/Attributes/Hidden.php @@ -7,6 +7,4 @@ namespace WendellAdriel\Lift\Attributes; use Attribute; #[Attribute(Attribute::TARGET_PROPERTY)] -final class Hidden -{ -} +final class Hidden {} diff --git a/src/Attributes/Immutable.php b/src/Attributes/Immutable.php index b61af27..9743ccc 100644 --- a/src/Attributes/Immutable.php +++ b/src/Attributes/Immutable.php @@ -7,6 +7,4 @@ namespace WendellAdriel\Lift\Attributes; use Attribute; #[Attribute(Attribute::TARGET_PROPERTY)] -final class Immutable -{ -} +final class Immutable {} diff --git a/src/Attributes/PrimaryKey.php b/src/Attributes/PrimaryKey.php index 44f04b1..dc44578 100644 --- a/src/Attributes/PrimaryKey.php +++ b/src/Attributes/PrimaryKey.php @@ -12,6 +12,5 @@ final class PrimaryKey public function __construct( public string $type = 'int', public bool $incrementing = true, - ) { - } + ) {} } diff --git a/src/Attributes/Rules.php b/src/Attributes/Rules.php index 1754168..7a6be30 100644 --- a/src/Attributes/Rules.php +++ b/src/Attributes/Rules.php @@ -18,6 +18,5 @@ final class Rules * @var array */ public array $messages = [], - ) { - } + ) {} } diff --git a/src/Attributes/UpdateRules.php b/src/Attributes/UpdateRules.php index 78343d4..8c9b6cb 100644 --- a/src/Attributes/UpdateRules.php +++ b/src/Attributes/UpdateRules.php @@ -18,6 +18,5 @@ final class UpdateRules * @var array */ public array $messages = [], - ) { - } + ) {} } diff --git a/src/Attributes/Watch.php b/src/Attributes/Watch.php index 166b8fa..b40e0a9 100644 --- a/src/Attributes/Watch.php +++ b/src/Attributes/Watch.php @@ -11,6 +11,5 @@ final class Watch { public function __construct( public string $event, - ) { - } + ) {} } diff --git a/src/Support/MethodInfo.php b/src/Support/MethodInfo.php index 103ad8c..c473cf6 100644 --- a/src/Support/MethodInfo.php +++ b/src/Support/MethodInfo.php @@ -17,6 +17,5 @@ final class MethodInfo * @var Collection */ public readonly Collection $attributes - ) { - } + ) {} } diff --git a/src/Support/PropertyInfo.php b/src/Support/PropertyInfo.php index ac9b623..49cef75 100644 --- a/src/Support/PropertyInfo.php +++ b/src/Support/PropertyInfo.php @@ -16,6 +16,5 @@ final class PropertyInfo * @var Collection */ public readonly Collection $attributes, - ) { - } + ) {} } diff --git a/tests/Datasets/LibraryBook.php b/tests/Datasets/LibraryBook.php index e6e3c58..2e05172 100644 --- a/tests/Datasets/LibraryBook.php +++ b/tests/Datasets/LibraryBook.php @@ -7,6 +7,4 @@ namespace Tests\Datasets; use WendellAdriel\Lift\Attributes\Relations\BelongsTo; #[BelongsTo(Library::class)] -class LibraryBook extends Book -{ -} +class LibraryBook extends Book {} diff --git a/tests/Datasets/PriceChangedEvent.php b/tests/Datasets/PriceChangedEvent.php index 7c0330c..da8d342 100644 --- a/tests/Datasets/PriceChangedEvent.php +++ b/tests/Datasets/PriceChangedEvent.php @@ -14,6 +14,5 @@ final class PriceChangedEvent public function __construct( public ProductWatch $product, - ) { - } + ) {} } diff --git a/tests/Datasets/RandomNumberChangedEvent.php b/tests/Datasets/RandomNumberChangedEvent.php index 6f27be1..0ffff30 100644 --- a/tests/Datasets/RandomNumberChangedEvent.php +++ b/tests/Datasets/RandomNumberChangedEvent.php @@ -14,6 +14,5 @@ final class RandomNumberChangedEvent public function __construct( public ProductWatch $product, - ) { - } + ) {} } diff --git a/tests/Datasets/WorkBook.php b/tests/Datasets/WorkBook.php index 4a17780..fefdf50 100644 --- a/tests/Datasets/WorkBook.php +++ b/tests/Datasets/WorkBook.php @@ -7,6 +7,4 @@ namespace Tests\Datasets; use WendellAdriel\Lift\Attributes\Relations\BelongsTo; #[BelongsTo(User::class)] -class WorkBook extends Book -{ -} +class WorkBook extends Book {}