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

marscoin / martianrepublic / 23749891416

30 Mar 2026 02:25PM UTC coverage: 8.467% (+3.2%) from 5.241%
23749891416

push

github

Martian Congress
fix: resolve all 10 PHPStan errors + add 37 new tests

Fixes:
- DashboardController: undefined $user/$citizen in showReports/showCamera
- AiHelperController: env() → config() for cached config safety
- BADS models: add return type hints so Larastan resolves relations
- Ballots model: add return type hints for proposal/user relations
- ErrorTriageMail: fix regex delimiter and add unicode flag
- services.php: add openrouter config block

New test suites (37 tests, 97 assertions):
- AcademyTest: 10 article page loads + 404 handling
- ForumTest: categories, threads, posts, ordering, proposal linkage
- CongressTest: ballot relations, pendingForUser, controller methods
- InstrumentTest: chain of trust, calibration, attestations, soft delete
- AiHelperTest: validation, error triage mail, severity extraction

Total: 79 tests, 161 assertions, 0 PHPStan errors

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

14 of 21 new or added lines in 8 files covered. (66.67%)

1257 existing lines in 18 files now uncovered.

445 of 5256 relevant lines covered (8.47%)

1.06 hits per line

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

0.0
/app/Http/Controllers/ContactFormController.php
1
<?php
2
namespace App\Http\Controllers;
3

4
use Illuminate\Http\Request;
5
use App\Mail\ContactFormMail;
6
use Illuminate\Support\Facades\Mail;
7

8
class ContactFormController extends Controller
9
{
10
    public function sendEmail(Request $request)
×
11
    {
12
        $validated = $request->validate([
×
UNCOV
13
            'name' => ['required', 'string', 'max:255'],
×
14
            'email' => ['required', 'email', 'max:255'],
×
UNCOV
15
            'subject' => ['required', 'string', 'max:255'],
×
16
            'text' => ['required', 'string', 'max:5000'],
×
UNCOV
17
        ]);
×
18

UNCOV
19
        Mail::to('info@marscoin.org')->send(new ContactFormMail($validated));
×
20

UNCOV
21
        return back()->with('message_sent', 'Your message has been sent successfully!');
×
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc