From b1c97266d6772ab697902c96753af62d52421cd5 Mon Sep 17 00:00:00 2001 From: cholladay0816 Date: Thu, 21 Dec 2023 22:38:19 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- app/Models/User.php | 3 +-- app/View/Components/Badges/Affiliate.php | 13 +++++++------ app/View/Components/Badges/Badge.php | 13 +++++++------ 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index c31b5091..739b511a 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -119,8 +119,7 @@ public function activeAffiliate(): HasOne|Affiliate public function getBadges(): array { $badges = []; - if($this->activeAffiliate()->count()) - { + if($this->activeAffiliate()->count()) { $badges[] .= 'badges.affiliate'; } return $badges; diff --git a/app/View/Components/Badges/Affiliate.php b/app/View/Components/Badges/Affiliate.php index a280f796..e26ac806 100644 --- a/app/View/Components/Badges/Affiliate.php +++ b/app/View/Components/Badges/Affiliate.php @@ -11,12 +11,13 @@ class Affiliate extends Component * * @return void */ - public function __construct(public string $text = 'Affiliate', - public string $title = 'This user is a verified affiliate', - public string $textColor = 'text-blue-700', - public string $bg = 'bg-blue-100', - public string $fill = 'fill-blue-500') - { + public function __construct( + public string $text = 'Affiliate', + public string $title = 'This user is a verified affiliate', + public string $textColor = 'text-blue-700', + public string $bg = 'bg-blue-100', + public string $fill = 'fill-blue-500' + ) { // } diff --git a/app/View/Components/Badges/Badge.php b/app/View/Components/Badges/Badge.php index 7ea55672..836a1139 100644 --- a/app/View/Components/Badges/Badge.php +++ b/app/View/Components/Badges/Badge.php @@ -11,12 +11,13 @@ class Badge extends Component * * @return void */ - public function __construct(public string $text, - public ?string $title = null, - public string $textColor = 'text-purple-700', - public string $bg = 'bg-purple-100', - public string $fill = 'fill-purple-500') - { + public function __construct( + public string $text, + public ?string $title = null, + public string $textColor = 'text-purple-700', + public string $bg = 'bg-purple-100', + public string $fill = 'fill-purple-500' + ) { // }