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 May 9, 2024
1 parent 456b676 commit f06f0be
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/Gauge.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ final class Gauge
*/
public static function teamModel()
{
return static::$teamModel;
return self::$teamModel;
}

/**
Expand All @@ -77,9 +77,9 @@ public static function teamModel()
*/
public static function useTeamModel(string $model)
{
static::$teamModel = $model;
self::$teamModel = $model;

return new static();
return new self();
}

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

return new $model();
}
Expand All @@ -102,7 +102,7 @@ public static function newTeamModel()
*/
public static function findTeamByIdOrFail($id)
{
return static::newTeamModel()->whereId($id)->firstOrFail();
return self::newTeamModel()->whereId($id)->firstOrFail();
}

/**
Expand All @@ -112,7 +112,7 @@ public static function findTeamByIdOrFail($id)
*/
public static function reviewModel()
{
return static::$reviewModel;
return self::$reviewModel;
}

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

return new $model();
}
Expand All @@ -134,9 +134,9 @@ public static function newReviewModel()
*/
public static function useReviewModel(string $model)
{
static::$reviewModel = $model;
self::$reviewModel = $model;

return new static();
return new self();
}

/**
Expand All @@ -146,9 +146,9 @@ public static function useReviewModel(string $model)
*/
public static function ignoreMigrations()
{
static::$runsMigrations = false;
self::$runsMigrations = false;

return new static();
return new self();
}

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

return new static();
return new self();
}

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

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

return new $model();
}
Expand All @@ -192,9 +192,9 @@ public static function newUserModel()
*/
public static function useUserModel(string $model)
{
static::$userModel = $model;
self::$userModel = $model;

return new static();
return new self();
}

/**
Expand All @@ -204,9 +204,9 @@ public static function useUserModel(string $model)
*/
public static function supportsSoftDeletes(bool $value = true)
{
static::$supportsSoftDeletes = $value;
self::$supportsSoftDeletes = $value;

return new static();
return new self();
}

/**
Expand All @@ -216,9 +216,9 @@ public static function supportsSoftDeletes(bool $value = true)
*/
public static function useReviewsTableName(string $value)
{
static::$reviewsTableName = $value;
self::$reviewsTableName = $value;

return new static();
return new self();
}

/**
Expand All @@ -228,8 +228,8 @@ public static function useReviewsTableName(string $value)
*/
public static function supportsSingleReviews(bool $value = true)
{
static::$supportsSingleReviews = $value;
self::$supportsSingleReviews = $value;

return new static();
return new self();
}
}

0 comments on commit f06f0be

Please sign in to comment.