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

otis22 / vetmanager-url / 19872386246

02 Dec 2025 08:23PM UTC coverage: 72.131% (-9.4%) from 81.481%
19872386246

push

github

web-flow
Merge pull request #4 from otis22/cursor/check-project-issues-gpt-5.1-codex-6acd

Check project issues

0 of 8 new or added lines in 1 file covered. (0.0%)

44 of 61 relevant lines covered (72.13%)

6.34 hits per line

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

0.0
/src/functions.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Otis22\VetmanagerUrl;
6

7
use GuzzleHttp\Client;
8
use Otis22\VetmanagerUrl\Url\Part\Domain;
9

10
function create_url_from_billing_api_gateway(string $domainName, string $billingApiUrl): Url
11
{
12
    return Url\FromJson::fromDomainAndBillingApi(
×
13
        new Domain($domainName),
×
14
        new Url\BillingApi($billingApiUrl)
×
15
    );
×
16
}
17

18
function url(string $domainName): Url
19
{
20
    /** @var array<string, Url> $cache */
NEW
21
    static $cache = [];
×
22

NEW
23
    if (isset($cache[$domainName])) {
×
NEW
24
        return $cache[$domainName];
×
25
    }
26

NEW
27
    $cache[$domainName] = create_url_from_billing_api_gateway(
×
NEW
28
        $domainName,
×
NEW
29
        "https://billing-api.vetmanager.cloud"
×
NEW
30
    );
×
31

NEW
32
    return $cache[$domainName];
×
33
}
34

35
function url_test_env(string $domainName): Url
36
{
37
    return create_url_from_billing_api_gateway($domainName, "https://billing-api-test.kube-dev.vetmanager.cloud/");
×
38
}
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