From d5fdff0d21f53996de3eac3db74f5764ca9d513b Mon Sep 17 00:00:00 2001 From: CrazyBoy49z Date: Tue, 25 Jun 2024 17:54:32 +0000 Subject: [PATCH] Fix styling --- src/Components/BtnGroup.php | 4 +--- src/Components/Chat.php | 3 +-- src/Components/Choices.php | 4 +--- src/Components/Form/FormToggle.php | 4 +--- src/Components/Image.php | 3 +-- src/Components/Link.php | 4 +--- src/Components/Menu.php | 4 +--- src/Components/Tabs.php | 4 +--- 8 files changed, 8 insertions(+), 22 deletions(-) diff --git a/src/Components/BtnGroup.php b/src/Components/BtnGroup.php index 8db2bca..696e557 100644 --- a/src/Components/BtnGroup.php +++ b/src/Components/BtnGroup.php @@ -2,6 +2,4 @@ namespace Step2dev\LazyUI\Components; -class BtnGroup extends Join -{ -} +class BtnGroup extends Join {} diff --git a/src/Components/Chat.php b/src/Components/Chat.php index db5be3a..5a7808f 100644 --- a/src/Components/Chat.php +++ b/src/Components/Chat.php @@ -14,8 +14,7 @@ public function __construct( public string $avatar = '', public string $time = '', public string $position = 'start' - ) { - } + ) {} public function render(): Closure|View { diff --git a/src/Components/Choices.php b/src/Components/Choices.php index 228adad..7b96c2c 100644 --- a/src/Components/Choices.php +++ b/src/Components/Choices.php @@ -6,9 +6,7 @@ class Choices extends LazyComponent { - public function __construct() - { - } + public function __construct() {} /** * Get the view / contents that represent the component. diff --git a/src/Components/Form/FormToggle.php b/src/Components/Form/FormToggle.php index 7d99f56..4831b47 100644 --- a/src/Components/Form/FormToggle.php +++ b/src/Components/Form/FormToggle.php @@ -7,9 +7,7 @@ class FormToggle extends LazyComponent { - public function __construct(public string $label = '') - { - } + public function __construct(public string $label = '') {} public function render(): \Closure|View { diff --git a/src/Components/Image.php b/src/Components/Image.php index 61b0982..f4577cb 100644 --- a/src/Components/Image.php +++ b/src/Components/Image.php @@ -10,8 +10,7 @@ class Image extends LazyComponent public function __construct( protected ?string $src = '', protected ?string $alt = '' - ) { - } + ) {} public function render(): \Closure|View { diff --git a/src/Components/Link.php b/src/Components/Link.php index 9f0ed8c..ffda401 100644 --- a/src/Components/Link.php +++ b/src/Components/Link.php @@ -7,9 +7,7 @@ class Link extends LazyComponent { - public function __construct(public string $label = '') - { - } + public function __construct(public string $label = '') {} public function render(): Closure { diff --git a/src/Components/Menu.php b/src/Components/Menu.php index d51d46e..58966a9 100644 --- a/src/Components/Menu.php +++ b/src/Components/Menu.php @@ -8,9 +8,7 @@ class Menu extends LazyComponent { - public function __construct(public bool $join = true) - { - } + public function __construct(public bool $join = true) {} /** * Get the view / contents that represent the component. diff --git a/src/Components/Tabs.php b/src/Components/Tabs.php index ede8227..0458107 100644 --- a/src/Components/Tabs.php +++ b/src/Components/Tabs.php @@ -7,9 +7,7 @@ class Tabs extends LazyComponent { - public function __construct(public string $type = '', public string $size = '') - { - } + public function __construct(public string $type = '', public string $size = '') {} public function allowedTabType(): array {