From 9884926c4500048a225b8f1f34ed18bf8b168b3e Mon Sep 17 00:00:00 2001 From: frknasir Date: Wed, 15 Jan 2025 19:59:44 +0000 Subject: [PATCH] Fix styling --- src/Gauge.php | 22 ++++++++++---------- stubs/app/Models/Review.php | 4 +--- stubs/app/Providers/GaugeServiceProvider.php | 4 +--- tests/ReviewableTest.php | 2 +- 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/src/Gauge.php b/src/Gauge.php index 8fb6aef..a60d524 100755 --- a/src/Gauge.php +++ b/src/Gauge.php @@ -79,7 +79,7 @@ public static function useTeamModel(string $model) { self::$teamModel = $model; - return new self(); + return new self; } /** @@ -91,7 +91,7 @@ public static function newTeamModel() { $model = self::teamModel(); - return new $model(); + return new $model; } /** @@ -124,7 +124,7 @@ public static function newReviewModel() { $model = self::reviewModel(); - return new $model(); + return new $model; } /** @@ -136,7 +136,7 @@ public static function useReviewModel(string $model) { self::$reviewModel = $model; - return new self(); + return new self; } /** @@ -148,7 +148,7 @@ public static function ignoreMigrations() { self::$runsMigrations = false; - return new self(); + return new self; } /** @@ -160,7 +160,7 @@ public static function supportsTeams(bool $value = true) { self::$supportsTeams = $value; - return new self(); + return new self; } /** @@ -182,7 +182,7 @@ public static function newUserModel() { $model = self::userModel(); - return new $model(); + return new $model; } /** @@ -194,7 +194,7 @@ public static function useUserModel(string $model) { self::$userModel = $model; - return new self(); + return new self; } /** @@ -206,7 +206,7 @@ public static function supportsSoftDeletes(bool $value = true) { self::$supportsSoftDeletes = $value; - return new self(); + return new self; } /** @@ -218,7 +218,7 @@ public static function useReviewsTableName(string $value) { self::$reviewsTableName = $value; - return new self(); + return new self; } /** @@ -230,6 +230,6 @@ public static function supportsSingleReviews(bool $value = true) { self::$supportsSingleReviews = $value; - return new self(); + return new self; } } diff --git a/stubs/app/Models/Review.php b/stubs/app/Models/Review.php index 40d4592..f37258d 100644 --- a/stubs/app/Models/Review.php +++ b/stubs/app/Models/Review.php @@ -4,6 +4,4 @@ use StarfolkSoftware\Gauge\Review as GaugeReview; -class Review extends GaugeReview -{ -} +class Review extends GaugeReview {} diff --git a/stubs/app/Providers/GaugeServiceProvider.php b/stubs/app/Providers/GaugeServiceProvider.php index 276ff5c..549b4e9 100644 --- a/stubs/app/Providers/GaugeServiceProvider.php +++ b/stubs/app/Providers/GaugeServiceProvider.php @@ -21,7 +21,5 @@ public function register() * * @return void */ - public function boot() - { - } + public function boot() {} } diff --git a/tests/ReviewableTest.php b/tests/ReviewableTest.php index 9c97a42..19e94bd 100644 --- a/tests/ReviewableTest.php +++ b/tests/ReviewableTest.php @@ -9,7 +9,7 @@ $item = Item::forceCreate(['name' => 'Item 1']); - $review = new Review(); + $review = new Review; $review->user_id = 1; $review->rating = 4;