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

api-platform / core / 19173909613

07 Nov 2025 04:03PM UTC coverage: 0.0% (-22.0%) from 22.042%
19173909613

Pull #7515

github

web-flow
Merge 63ab5112d into 3df65aa86
Pull Request #7515: fix(jsonld): read identifier with itemUriTemplate

0 of 11 new or added lines in 2 files covered. (0.0%)

11197 existing lines in 362 files now uncovered.

0 of 49873 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/src/State/Util/CorsTrait.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\State\Util;
15

16
use Symfony\Component\HttpFoundation\Request;
17

18
/**
19
 * CORS utils.
20
 *
21
 * @internal
22
 *
23
 * @author Kévin Dunglas <dunglas@gmail.com>
24
 */
25
trait CorsTrait
26
{
27
    public function isPreflightRequest(Request $request): bool
28
    {
UNCOV
29
        return $request->isMethod('OPTIONS') && $request->headers->has('Access-Control-Request-Method');
×
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