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

RonasIT / laravel-empty-project / 21240329022

22 Jan 2026 07:48AM UTC coverage: 97.131% (-2.6%) from 99.683%
21240329022

Pull #138

github

web-flow
Merge f135181af into e2a974b18
Pull Request #138: Dpankratov/move logic to initializator

5 of 5 new or added lines in 4 files covered. (100.0%)

7 existing lines in 4 files now uncovered.

237 of 244 relevant lines covered (97.13%)

6.18 hits per line

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

83.33
/app/Http/Requests/Setting/GetSettingRequest.php
1
<?php
2

3
namespace App\Http\Requests\Setting;
4

5
use App\Http\Requests\Request;
6
use App\Models\Setting;
7
use App\Services\SettingService;
8
use Illuminate\Support\Arr;
9
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
10

11
class GetSettingRequest extends Request
12
{
13
    protected ?Setting $setting;
14

15
    public function authorize(): bool
16
    {
17
        $service = app(SettingService::class);
5✔
18
        $this->setting = $service->findBy('name', $this->route('name'));
5✔
19

20
        return Arr::get($this->setting, 'is_public', false);
5✔
21
    }
22

23
    public function validateResolved(): void
24
    {
25
        parent::validateResolved();
5✔
26

27
        if (empty($this->setting)) {
3✔
UNCOV
28
            throw new NotFoundHttpException(__('validation.exceptions.not_found', ['entity' => 'Setting']));
×
29
        }
30
    }
31
}
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