Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function generateTopicIri(string $subscriptionId): string |
||
37 | { |
||
38 | if ('' === $scheme = $this->requestContext->getScheme()) { |
||
39 | $scheme = 'https'; |
||
40 | } |
||
41 | if ('' === $host = $this->requestContext->getHost()) { |
||
42 | $host = 'api-platform.com'; |
||
43 | } |
||
44 | |||
45 | return "$scheme://$host/subscriptions/$subscriptionId"; |
||
46 | } |
||
53 |