Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | protected function getPublicationPath(Entity\Filesystem\FilesystemEntity $filesystemEntity) : string |
||
30 | { |
||
31 | $path = $filesystemEntity->getPath().'/'.$filesystemEntity->getBaseName(); |
||
32 | |||
33 | if (strpos($path, '//') !== false) { |
||
34 | $path = str_replace('//', '/', $path); |
||
35 | } |
||
36 | |||
37 | return $path; |
||
38 | } |
||
39 | } |
||
40 |