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 Feb 15, 2023
1 parent 47f8c7e commit 756a76c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
7 changes: 0 additions & 7 deletions src/Gauge.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public static function teamModel()
/**
* Specify the team model that should be used by Gauge.
*
* @param string $model
* @return static
*/
public static function useTeamModel(string $model)
Expand Down Expand Up @@ -131,7 +130,6 @@ public static function newReviewModel()
/**
* Specify the review model that should be used by Gauge.
*
* @param string $model
* @return static
*/
public static function useReviewModel(string $model)
Expand All @@ -156,7 +154,6 @@ public static function ignoreMigrations()
/**
* Configure Gauge to support multiple teams.
*
* @param bool $value
* @return static
*/
public static function supportsTeams(bool $value = true)
Expand Down Expand Up @@ -191,7 +188,6 @@ public static function newUserModel()
/**
* Specify the user model that should be used by Gauge.
*
* @param string $model
* @return static
*/
public static function useUserModel(string $model)
Expand All @@ -204,7 +200,6 @@ public static function useUserModel(string $model)
/**
* Configure Gauge to support soft delete.
*
* @param bool $value
* @return static
*/
public static function supportsSoftDeletes(bool $value = true)
Expand All @@ -217,7 +212,6 @@ public static function supportsSoftDeletes(bool $value = true)
/**
* Sets reviews table name.
*
* @param string $value
* @return static
*/
public static function useReviewsTableName(string $value)
Expand All @@ -230,7 +224,6 @@ public static function useReviewsTableName(string $value)
/**
* Sets reviews table name.
*
* @param bool $value
* @return static
*/
public static function supportsSingleReviews(bool $value = true)
Expand Down
2 changes: 0 additions & 2 deletions src/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ abstract class Review extends Model

/**
* Returns the table name.
*
* @return string
*/
public function getTable(): string
{
Expand Down
7 changes: 0 additions & 7 deletions src/Reviewable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ trait Reviewable
* Leaves a review on the model.
*
* @param mixed $user
* @param int $rating
* @param string|null $comment
* @return void
*/
Expand Down Expand Up @@ -47,8 +46,6 @@ public function reviews()

/**
* Returns the latest review.
*
* @return \Illuminate\Database\Eloquent\Casts\Attribute
*/
public function latestReview(): Attribute
{
Expand All @@ -57,8 +54,6 @@ public function latestReview(): Attribute

/**
* Calculates the avarage rating
*
* @return \Illuminate\Database\Eloquent\Casts\Attribute
*/
public function averageRating(): Attribute
{
Expand All @@ -67,8 +62,6 @@ public function averageRating(): Attribute

/**
* Calculates the total value of ratings
*
* @return \Illuminate\Database\Eloquent\Casts\Attribute
*/
public function totalRating(): Attribute
{
Expand Down
12 changes: 0 additions & 12 deletions stubs/app/Policies/ReviewPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ReviewPolicy
/**
* Determine whether the user can view any reviews.
*
* @param \App\Models\User $user
* @return \Illuminate\Auth\Access\Response|bool
*/
public function viewAny(User $user)
Expand All @@ -24,8 +23,6 @@ public function viewAny(User $user)
/**
* Determine whether the user can view the review.
*
* @param \App\Models\User $user
* @param \App\Models\Review $review
* @return \Illuminate\Auth\Access\Response|bool
*/
public function view(User $user, Review $review)
Expand All @@ -36,7 +33,6 @@ public function view(User $user, Review $review)
/**
* Determine whether the user can create reviews.
*
* @param \App\Models\User $user
* @return \Illuminate\Auth\Access\Response|bool
*/
public function create(User $user)
Expand All @@ -47,8 +43,6 @@ public function create(User $user)
/**
* Determine whether the user can update the review.
*
* @param \App\Models\User $user
* @param \App\Models\Review $review
* @return \Illuminate\Auth\Access\Response|bool
*/
public function update(User $user, Review $review)
Expand All @@ -59,8 +53,6 @@ public function update(User $user, Review $review)
/**
* Determine whether the user can delete the review.
*
* @param \App\Models\User $user
* @param \App\Models\Review $review
* @return \Illuminate\Auth\Access\Response|bool
*/
public function delete(User $user, Review $review)
Expand All @@ -71,8 +63,6 @@ public function delete(User $user, Review $review)
/**
* Determine whether the user can restore the review.
*
* @param \App\Models\User $user
* @param \App\Models\Review $review
* @return \Illuminate\Auth\Access\Response|bool
*/
public function restore(User $user, Review $review)
Expand All @@ -83,8 +73,6 @@ public function restore(User $user, Review $review)
/**
* Determine whether the user can permanently delete the review.
*
* @param \App\Models\User $user
* @param \App\Models\Review $review
* @return \Illuminate\Auth\Access\Response|bool
*/
public function forceDelete(User $user, Review $review)
Expand Down

0 comments on commit 756a76c

Please sign in to comment.