Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function open(UploadedFile|string $file): Export |
||
23 | { |
||
24 | if ($file instanceof UploadedFile) { |
||
25 | $this->disk = null; |
||
26 | |||
27 | $file = File::make($file->getRealPath(), $this->disk); |
||
28 | } |
||
29 | else { |
||
30 | $file = File::make($file, $this->disk); |
||
31 | } |
||
32 | |||
33 | return new Export($file, config('pdf-optimizer.gs')); |
||
34 | } |
||
36 |