Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
frknasir authored and github-actions[bot] committed Jan 15, 2025
1 parent 442f594 commit 9884926
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
22 changes: 11 additions & 11 deletions src/Gauge.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function useTeamModel(string $model)
{
self::$teamModel = $model;

return new self();
return new self;
}

/**
Expand All @@ -91,7 +91,7 @@ public static function newTeamModel()
{
$model = self::teamModel();

return new $model();
return new $model;
}

/**
Expand Down Expand Up @@ -124,7 +124,7 @@ public static function newReviewModel()
{
$model = self::reviewModel();

return new $model();
return new $model;
}

/**
Expand All @@ -136,7 +136,7 @@ public static function useReviewModel(string $model)
{
self::$reviewModel = $model;

return new self();
return new self;
}

/**
Expand All @@ -148,7 +148,7 @@ public static function ignoreMigrations()
{
self::$runsMigrations = false;

return new self();
return new self;
}

/**
Expand All @@ -160,7 +160,7 @@ public static function supportsTeams(bool $value = true)
{
self::$supportsTeams = $value;

return new self();
return new self;
}

/**
Expand All @@ -182,7 +182,7 @@ public static function newUserModel()
{
$model = self::userModel();

return new $model();
return new $model;
}

/**
Expand All @@ -194,7 +194,7 @@ public static function useUserModel(string $model)
{
self::$userModel = $model;

return new self();
return new self;
}

/**
Expand All @@ -206,7 +206,7 @@ public static function supportsSoftDeletes(bool $value = true)
{
self::$supportsSoftDeletes = $value;

return new self();
return new self;
}

/**
Expand All @@ -218,7 +218,7 @@ public static function useReviewsTableName(string $value)
{
self::$reviewsTableName = $value;

return new self();
return new self;
}

/**
Expand All @@ -230,6 +230,6 @@ public static function supportsSingleReviews(bool $value = true)
{
self::$supportsSingleReviews = $value;

return new self();
return new self;
}
}
4 changes: 1 addition & 3 deletions stubs/app/Models/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use StarfolkSoftware\Gauge\Review as GaugeReview;

class Review extends GaugeReview
{
}
class Review extends GaugeReview {}
4 changes: 1 addition & 3 deletions stubs/app/Providers/GaugeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ public function register()
*
* @return void
*/
public function boot()
{
}
public function boot() {}
}
2 changes: 1 addition & 1 deletion tests/ReviewableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

$item = Item::forceCreate(['name' => 'Item 1']);

$review = new Review();
$review = new Review;

$review->user_id = 1;
$review->rating = 4;
Expand Down

0 comments on commit 9884926

Please sign in to comment.