Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | #[\Override] |
||
26 | public function publicUrl(string $path, \League\Flysystem\Config $config): string |
||
27 | { |
||
28 | if ($this->fileExists('public/'.$path)) { |
||
29 | if (function_exists('url')) { |
||
30 | // @codeCoverageIgnoreStart |
||
31 | return url($this->storagePath.'//public//'.$path); |
||
32 | // @codeCoverageIgnoreEnd |
||
33 | } |
||
34 | |||
35 | return $this->storagePath.'//public//'.$path; |
||
36 | } |
||
37 | throw new UnableToGeneratePublicUrl('File is not public', $path); |
||
38 | } |
||
40 |