Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 97 | public function endpoint(Definitions\Services $service): string |
|
43 | { |
||
44 | 97 | $environment = $this->environment; |
|
45 | 97 | if ($service->isManifest()) { |
|
46 | 11 | $environment = (new Definitions\EnvironmentManifest($environment->index())); |
|
47 | } |
||
48 | |||
49 | 97 | return rtrim($environment->value(), '/') . '/' . ltrim($service->value(), '/'); |
|
50 | } |
||
52 |