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

otis22 / vetmanager-url / 19906134769

03 Dec 2025 07:25PM UTC coverage: 72.131%. Remained the same
19906134769

push

github

web-flow
Merge pull request #6 from otis22/cursor/fetch-latest-git-changes-gpt-5.1-codex-a663

Fetch latest git changes

0 of 1 new or added line 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 */
21
    static $cache = [];
×
22

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

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

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