• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LeTraceurSnorkLibrary / MessSaga / 25921197134

15 May 2026 01:44PM UTC coverage: 41.107% (+4.5%) from 36.562%
25921197134

Pull #20

github

web-flow
Merge a78ef7498 into aac55fbb3
Pull Request #20: feat: tariffs

290 of 509 new or added lines in 31 files covered. (56.97%)

3 existing lines in 3 files now uncovered.

869 of 2114 relevant lines covered (41.11%)

0.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Observers/UserObserver.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Observers;
6

7
use App\Models\User;
8
use App\Services\Quota\TariffChangeGracePeriodService;
9

10
class UserObserver
11
{
12
    /**
13
     * @param TariffChangeGracePeriodService $tariffChangeGracePeriodService
14
     */
15
    public function __construct(
16
        private readonly TariffChangeGracePeriodService $tariffChangeGracePeriodService
17
    ) {
NEW
18
    }
×
19

20
    /**
21
     * @param User $user
22
     *
23
     * @return void
24
     */
25
    public function updating(User $user): void
26
    {
NEW
27
        if (!$user->isDirty('tariff_code')) {
×
NEW
28
            return;
×
29
        }
30

NEW
31
        $oldTariffCode = $user->getOriginal('tariff_code');
×
NEW
32
        $this->tariffChangeGracePeriodService->applyForTariffChange(
×
NEW
33
            user: $user,
×
NEW
34
            oldTariffCode: is_string($oldTariffCode)
×
NEW
35
                ? $oldTariffCode
×
NEW
36
                : null,
×
NEW
37
        );
×
38
    }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc