public function isValidExtension()
    {
        return !count($this->allowedExtensions)
            || in_array($this->getFileExtension(), $this->allowedExtensions, true);
    }
public function isValidExtension()
    {
        return !count($this->allowedExtensions)
            || in_array($this->getFileExtension(), $this->allowedExtensions, true);
    }
public function isValidExtension ( ) { return ! count ( $ this -> allowedExtensions ) || in_array ( $ this -> getFileExtension ( ) , $ this -> allowedExtensions , true ) ; }
Determines if the temporary file has a valid extension
An empty string in the validation map indicates files without an extension.
@return boolean
Determines if the temporary file has a valid extension An empty string in the validation map indicates files without an extension .