Skip to content

Commit 7d452d2

Browse files
author
Gabriel Galvao da Gama
committed
Removing stat function since it doesnt return extension
1 parent 4225d0a commit 7d452d2

File tree

1 file changed

+0
-3
lines changed
  • app/code/Magento/Customer/Model/Metadata/Form

1 file changed

+0
-3
lines changed

app/code/Magento/Customer/Model/Metadata/Form/File.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,6 @@ protected function _validateByRules($value)
228228
*/
229229
private function getFileExtension(string $fileName): string
230230
{
231-
if ($this->fileProcessor->isExist($fileName)) {
232-
return $this->fileProcessor->getStat($fileName)['extension'];
233-
}
234231
return pathinfo($fileName, PATHINFO_EXTENSION);
235232
}
236233

0 commit comments

Comments
 (0)