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

Freegle / Iznik / 11404

08 May 2026 04:22PM UTC coverage: 72.752% (+0.06%) from 72.691%
11404

push

circleci

fnnbrr
Merge remote-tracking branch 'origin/master' into tn-integration-refactor

13726 of 20598 branches covered (66.64%)

Branch coverage included in aggregate %.

3277 of 4560 new or added lines in 82 files covered. (71.86%)

25 existing lines in 7 files now uncovered.

102718 of 139457 relevant lines covered (73.66%)

22.46 hits per line

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

91.67
/iznik-batch/app/Console/Commands/User/UpdateModMailsCommand.php
1
<?php
2

3
namespace App\Console\Commands\User;
4

5
use App\Services\UserModMailsService;
6
use Illuminate\Console\Command;
7
use Illuminate\Support\Facades\Log;
8

9
class UpdateModMailsCommand extends Command
10
{
11
    protected $signature = 'users:update-modmails
12
                            {--dry-run : Show counts without making changes}';
13

14
    protected $description = 'Sync recent mod actions into users_modmails and prune old entries (V1: users_modmails.php)';
15

16
    public function handle(UserModMailsService $service): int
1✔
17
    {
18
        $dryRun = (bool) $this->option('dry-run');
1✔
19

20
        if ($dryRun) {
1✔
21
            $this->info('Dry run — counting changes but not writing.');
1✔
22
        }
23

24
        $inserted = $service->updateModMails($dryRun);
1✔
25
        $deleted = $service->pruneOldEntries($dryRun);
1✔
26

27
        $verb = $dryRun ? 'would insert' : 'inserted';
1✔
28
        $verb2 = $dryRun ? 'would prune' : 'pruned';
1✔
29
        $this->info("users:update-modmails — {$verb}: {$inserted}, {$verb2}: {$deleted}");
1✔
30

31
        if (!$dryRun) {
1✔
NEW
32
            Log::info('users:update-modmails complete', ['inserted' => $inserted, 'pruned' => $deleted]);
×
33
        }
34

35
        return Command::SUCCESS;
1✔
36
    }
37
}
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