| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class UrlController extends Controller |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Display selected media item. |
||
| 13 | * |
||
| 14 | * @param string $collection |
||
| 15 | * @param string $conversionName |
||
| 16 | * @param \App\Models\Media $media |
||
| 17 | * @return \Symfony\Component\HttpFoundation\BinaryFileResponse |
||
| 18 | */ |
||
| 19 | public function display(string $collection, string $conversionName, Media $media): BinaryFileResponse |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the path of the selected media item file. |
||
| 33 | * |
||
| 34 | * @param \App\Models\Media $media |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | private function getFilePath(Media $media, $conversionName = ''): string |
||
| 42 |