We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class FileNameGenerator implements FileNameGeneratorInterface |
||
| 10 | { |
||
| 11 | public function getName(string|UploadedFile $file): string |
||
| 12 | { |
||
| 13 | return $this->getFileName($file).'.'.$this->getExtensionFromFile($file); |
||
| 14 | } |
||
| 15 | |||
| 16 | private function getExtensionFromFile(string|UploadedFile $file): string |
||
| 19 | } |
||
| 20 | |||
| 21 | private function getFileName(string|UploadedFile $file): string |
||
| 28 | } |
||
| 29 | } |
||
| 30 |