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

Freegle / Iznik / 11342

08 May 2026 02:47PM UTC coverage: 68.97% (-3.8%) from 72.761%
11342

push

circleci

web-flow
Merge pull request #403 from Freegle/feature/exports-migration

feat(batch): migrate exports.php to users:process-exports

9127 of 10554 branches covered (86.48%)

Branch coverage included in aggregate %.

400 of 452 new or added lines in 2 files covered. (88.5%)

12172 existing lines in 167 files now uncovered.

100855 of 148909 relevant lines covered (67.73%)

19.62 hits per line

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

41.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✔
UNCOV
25
        $deleted = $service->pruneOldEntries($dryRun);
×
26

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

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

UNCOV
35
        return Command::SUCCESS;
×
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