Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
Simoneu01 committed Oct 12, 2024
1 parent 14b0cf1 commit e6925cd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Concerns/GiveExperience.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use LevelUp\Experience\Events\PointsIncreased;
use LevelUp\Experience\Events\UserLevelledUp;
use LevelUp\Experience\Models\Experience;
use LevelUp\Experience\Models\ExperienceAudit;
use LevelUp\Experience\Models\Level;
use LevelUp\Experience\Services\MultiplierService;

Expand Down
3 changes: 1 addition & 2 deletions src/Concerns/HasAchievements.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use LevelUp\Experience\Events\AchievementAwarded;
use LevelUp\Experience\Events\AchievementProgressionIncreased;
use LevelUp\Experience\Models\Achievement;
use LevelUp\Experience\Models\Pivots\AchievementUser;

trait HasAchievements
{
Expand All @@ -33,7 +32,7 @@ public function grantAchievement(Achievement $achievement, $progress = null): vo

public function achievements(): BelongsToMany
{
return $this->belongsToMany(related: config(key: 'level-up.models.achievement'))
return $this->belongsToMany(related: config(key: 'level-up.models.achievement'))
->withTimestamps()
->withPivot(columns: 'progress')
->where('is_secret', false)
Expand Down
3 changes: 1 addition & 2 deletions src/Concerns/HasStreaks.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use LevelUp\Experience\Events\StreakUnfroze;
use LevelUp\Experience\Models\Activity;
use LevelUp\Experience\Models\Streak;
use LevelUp\Experience\Models\StreakHistory;

trait HasStreaks
{
Expand Down Expand Up @@ -152,7 +151,7 @@ public function freezeStreak(Activity $activity, ?int $days = null): bool

public function unFreezeStreak(Activity $activity): bool
{
Event::dispatch(new StreakUnfroze());
Event::dispatch(new StreakUnfroze);

return $this->getStreakLastActivity($activity)
->update(['frozen_until' => null]);
Expand Down
2 changes: 1 addition & 1 deletion src/LevelUpServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function register(): void
parent::register();

$this->app->register(provider: EventServiceProvider::class);
$this->app->singleton(abstract: 'leaderboard', concrete: fn () => new LeaderboardService());
$this->app->singleton(abstract: 'leaderboard', concrete: fn () => new LeaderboardService);
$this->app->register(provider: MultiplierServiceProvider::class);
}
}
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

uses(TestCase::class, FastRefreshDatabase::class)
->beforeEach(hook: function (): void {
$this->user = new User();
$this->user = new User;

$this->user->fill(attributes: [
'name' => 'Chris Mellor',
Expand Down

0 comments on commit e6925cd

Please sign in to comment.