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 |
||
44 | 27 | public function endpoint(Definitions\Services $service): string |
|
45 | { |
||
46 | 27 | $environment = $this->environment; |
|
47 | 27 | if ($service->isManifest()) { |
|
48 | 3 | $environment = (new Definitions\EnvironmentManifest($environment->index())); |
|
49 | } |
||
50 | |||
51 | 27 | return $environment->value() . $service->value(); |
|
52 | } |
||
54 |