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 | 37 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 9 | class FileNameGenerator implements FileNameGeneratorInterface  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * Generate a unique file name.  | 
            ||
| 13 | *  | 
            ||
| 14 | * @param string|UploadedFile $file  | 
            ||
| 15 | * @return string  | 
            ||
| 16 | */  | 
            ||
| 17 | public function generate($file)  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Return the file extension.  | 
            ||
| 24 | *  | 
            ||
| 25 | * @param mixed $file  | 
            ||
| 26 | * @return string  | 
            ||
| 27 | */  | 
            ||
| 28 | private function getExtensionFromFile($file)  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Return the file name.  | 
            ||
| 35 | *  | 
            ||
| 36 | * @param mixed $file  | 
            ||
| 37 | * @return string  | 
            ||
| 38 | */  | 
            ||
| 39 | private function getFileName($file)  | 
            ||
| 48 |