function _getMessageFilesArray() {
        $props = array(
            'name' => $this->filename
        );
        
        $file = @\realpath($this->attachment);
        if($file) {
            $props['path'] = $file;
        } elseif(\filter_var($this->attachment, \FILTER_VALIDATE_URL)) {
            $props['path'] = $this->attachment;
        } else {
            $props['data'] = $this->attachment;
        }
        
        if(empty($props['name'])) {
            if(!empty($props['path'])) {
                $props['name'] = \basename($props['path']);
            } else {
                $props['name'] = 'file-'.\bin2hex(\random_bytes(3)).'.jpg';
            }
        }
        
        return $props;
    }
function _getMessageFilesArray() {
        $props = array(
            'name' => $this->filename
        );
        
        $file = @\realpath($this->attachment);
        if($file) {
            $props['path'] = $file;
        } elseif(\filter_var($this->attachment, \FILTER_VALIDATE_URL)) {
            $props['path'] = $this->attachment;
        } else {
            $props['data'] = $this->attachment;
        }
        
        if(empty($props['name'])) {
            if(!empty($props['path'])) {
                $props['name'] = \basename($props['path']);
            } else {
                $props['name'] = 'file-'.\bin2hex(\random_bytes(3)).'.jpg';
            }
        }
        
        return $props;
    }
function _getMessageFilesArray ( ) { $ props = array ( 'name' => $ this -> filename ) ; $ file = @ \ realpath ( $ this -> attachment ) ; if ( $ file ) { $ props [ 'path' ] = $ file ; } elseif ( \ filter_var ( $ this -> attachment , \ FILTER_VALIDATE_URL ) ) { $ props [ 'path' ] = $ this -> attachment ; } else { $ props [ 'data' ] = $ this -> attachment ; } if ( empty ( $ props [ 'name' ] ) ) { if ( ! empty ( $ props [ 'path' ] ) ) { $ props [ 'name' ] = \ basename ( $ props [ 'path' ] ) ; } else { $ props [ 'name' ] = 'file-' . \ bin2hex ( \ random_bytes ( 3 ) ) . '.jpg' ; } } return $ props ; }
Returns a proper message files array.
@return array
@internal
Returns a proper message files array .