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

api-platform / core / 15630953100

13 Jun 2025 09:12AM UTC coverage: 21.861% (-0.02%) from 21.876%
15630953100

Pull #7207

github

web-flow
Merge 2608d8746 into cff61eab8
Pull Request #7207: feat(metadata) customize resource & operations

23 of 144 new or added lines in 10 files covered. (15.97%)

11404 of 52165 relevant lines covered (21.86%)

20.97 hits per line

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

0.0
/src/Metadata/Tests/Extractor/php/valid_custom_resource_php_file.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
use ApiPlatform\Metadata\ApiResource;
15

NEW
16
return static function (ApiResource $resource): ApiResource {
×
NEW
17
    return $resource->withShortName('dummy');
×
NEW
18
};
×
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