Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function generateUrl(object $object, string $fileProperty, Filesystem $filesystem, string $path): string |
||
24 | { |
||
25 | if (!$filesystem instanceof FlysystemTemporaryUrlGenerator) { |
||
26 | throw new InvalidArgumentException(sprintf('The public URL generator requires a filesystem implementing %s', FlysystemTemporaryUrlGenerator::class)); |
||
27 | } |
||
28 | return $filesystem->temporaryUrl($path, new \DateTime('+1 day'), new Config([])); |
||
|
|||
29 | } |
||
31 |