Conditions | 3 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 27 | public function resolveEnvFileName(HostId $hostId): string |
|
31 | { |
||
32 | 27 | $resolvedFileName = $this->originalFileName; |
|
33 | |||
34 | 27 | if ($this->formatter !== null) { |
|
35 | 14 | $resolvedFileName = $this->formatter->formatName(trim($this->originalFileName, '.'), $hostId); |
|
36 | } |
||
37 | |||
38 | 27 | return $this->isDotShouldBeAddedToFileName($resolvedFileName) ? '.' . $resolvedFileName : $resolvedFileName; |
|
39 | } |
||
46 |