| Conditions | 3 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | private function getExtension(UploadedFile $file): ?string |
||
|
1 ignored issue
–
show
|
|||
| 18 | { |
||
| 19 | var_dump('hello'); exit; |
||
| 20 | $originalName = $file->getClientOriginalName(); |
||
| 21 | |||
| 22 | if ($extension = pathinfo($originalName, PATHINFO_EXTENSION)) { |
||
| 23 | return strtolower($extension); |
||
| 24 | } |
||
| 25 | |||
| 26 | if ($extension = $file->guessExtension()) { |
||
| 27 | return strtolower($extension); |
||
| 28 | } |
||
| 29 | |||
| 30 | return null; |
||
| 31 | } |
||
| 38 |
This check looks for private methods that have been defined, but are not used inside the class.