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

RonasIT / laravel-swagger / 3929037431

pending completion
3929037431

push

github

dpankratov
tests: fix test fixtures;

236 of 464 relevant lines covered (50.86%)

2.91 hits per line

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

0.0
/src/Http/Middleware/AutoDocMiddleware.php
1
<?php
2

3
namespace RonasIT\Support\AutoDoc\Http\Middleware;
4

5
use Closure;
6
use RonasIT\Support\AutoDoc\Services\SwaggerService;
7

8
/**
9
 * @property SwaggerService $service
10
 */
11
class AutoDocMiddleware
12
{
13
    public static $skipped = false;
14

15
    public function handle($request, Closure $next)
16
    {
17
        $response = $next($request);
×
18

19
        if ((config('app.env') == 'testing') && !self::$skipped && !empty($request->route())) {
×
20
            app(SwaggerService::class)->addData($request, $response);
×
21
        }
22

23
        self::$skipped = false;
×
24

25
        return $response;
×
26
    }
27
}
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

© 2025 Coveralls, Inc