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

stripe / stripe-php / 6471862601

10 Oct 2023 04:02PM UTC coverage: 69.665% (-0.5%) from 70.141%
6471862601

push

github

web-flow
Merge pull request #1570 from localheinz/feature/coveralls

Enhancement: Use `coverallsapp/github-action` to report code coverage

2393 of 3435 relevant lines covered (69.67%)

3.5 hits per line

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

0.0
/lib/SingletonApiResource.php
1
<?php
2

3
namespace Stripe;
4

5
/**
6
 * Class SingletonApiResource.
7
 */
8
abstract class SingletonApiResource extends ApiResource
9
{
10
    /**
11
     * @return string the endpoint associated with this singleton class
12
     */
13
    public static function classUrl()
×
14
    {
15
        // Replace dots with slashes for namespaced resources, e.g. if the object's name is
16
        // "foo.bar", then its URL will be "/v1/foo/bar".
17

18
        /** @phpstan-ignore-next-line */
19
        $base = \str_replace('.', '/', static::OBJECT_NAME);
×
20

21
        return "/v1/{$base}";
×
22
    }
23

24
    /**
25
     * @return string the endpoint associated with this singleton API resource
26
     */
27
    public function instanceUrl()
×
28
    {
29
        return static::classUrl();
×
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