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

conedevelopment / root / 20618156642

31 Dec 2025 11:33AM UTC coverage: 75.542% (-0.5%) from 76.05%
20618156642

push

github

iamgergo
fixes

3 of 3 new or added lines in 1 file covered. (100.0%)

93 existing lines in 4 files now uncovered.

3450 of 4567 relevant lines covered (75.54%)

33.14 hits per line

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

0.0
/src/Http/Controllers/AsyncRelationController.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Cone\Root\Http\Controllers;
6

7
use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Http\JsonResponse;
9
use Illuminate\Http\Request;
10

11
class AsyncRelationController extends Controller
12
{
13
    /**
14
     * Handle the incoming request.
15
     */
16
    public function __invoke(Request $request, Model $model, ...$params): JsonResponse
×
17
    {
18
        $field = $request->route('field');
×
19

20
        $related = array_filter($params, fn (mixed $param): bool => $param instanceof Model);
×
21

UNCOV
22
        $related = $related[array_key_last($related)] ?? null;
×
23

UNCOV
24
        return new JsonResponse($field->paginateRelatable($request, $related ?: $model));
×
25
    }
26
}
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